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 <hector.palacios@digi.com>

https://onedigi.atlassian.net/browse/DEL-8262
This commit is contained in:
Hector Palacios 2022-12-22 17:17:11 +01:00
parent 1417728098
commit 7c580a3896
1 changed files with 3 additions and 3 deletions

View File

@ -76,6 +76,8 @@ resume_interfaces() {
# Resume NetworkManager after suspend # Resume NetworkManager after suspend
${NM_DAEMON} start ${NM_DAEMON} start
exit_critical_section
} }
enter_critical_section() { enter_critical_section() {
@ -110,9 +112,7 @@ if [ -f "${syspower}" ]; then
printf "mem" > ${syspower} printf "mem" > ${syspower}
# Post-resume actions # Post-resume actions
resume_interfaces resume_interfaces &
exit_critical_section
else else
printf "\n[ERROR] File ${syspower} not found\n\n" printf "\n[ERROR] File ${syspower} not found\n\n"
fi fi