iopupgrade: Prevent print to stdout in reboot subshell.

the trap for sigpipe is not active for any subshell so
manually prevent it from printing to non existing stdout.
This commit is contained in:
Kenneth Johansson 2019-01-11 14:06:12 +01:00
parent dafde17b4f
commit 7c8634e948

View file

@ -164,6 +164,8 @@ upd_finnish
# spawn the reboot to a subshell to allow the main program to quit before reset to avoid any hanged network connection like ssh
(
log_stdout=0 # stdin,stdout,stderr do not exist anymore, we are in a subshell and then the trap is no longer working.
sleep 1
log "Rebooting NOW!!!"
log ""