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:
parent
1417728098
commit
7c580a3896
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue