From 7c580a3896c9fa6ad9fcfdf74a42008d870242aa Mon Sep 17 00:00:00 2001 From: Hector Palacios Date: Thu, 22 Dec 2022 17:17:11 +0100 Subject: [PATCH] busybox: send resume actions to the background Make the script send the resume actions to the background so that console returns to the user without having to wait for the Wi-Fi module to load and the Bluetooth to attach. Signed-off-by: Hector Palacios https://onedigi.atlassian.net/browse/DEL-8262 --- meta-digi-dey/recipes-core/busybox/busybox/standby | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/meta-digi-dey/recipes-core/busybox/busybox/standby b/meta-digi-dey/recipes-core/busybox/busybox/standby index 0ffb6f348..385bc3283 100755 --- a/meta-digi-dey/recipes-core/busybox/busybox/standby +++ b/meta-digi-dey/recipes-core/busybox/busybox/standby @@ -76,6 +76,8 @@ resume_interfaces() { # Resume NetworkManager after suspend ${NM_DAEMON} start + + exit_critical_section } enter_critical_section() { @@ -110,9 +112,7 @@ if [ -f "${syspower}" ]; then printf "mem" > ${syspower} # Post-resume actions - resume_interfaces - - exit_critical_section + resume_interfaces & else printf "\n[ERROR] File ${syspower} not found\n\n" fi