softer shutdown after after update/recover

This commit is contained in:
rootzoll 2019-11-26 22:02:53 +01:00
parent d930d59d9a
commit f600588f99
2 changed files with 5 additions and 3 deletions

View File

@ -290,7 +290,7 @@ else
echo "No hostname set." >> ${logFile}
fi
echo "DONE - Give raspi some cool off time after hard building .... 20 secs sleep" >> ${logFile}
sleep 20
echo "DONE - Give raspi some cool off time after hard building .... 5 secs sleep" >> ${logFile}
sleep 5
echo "END Provisioning" >> ${logFile}

View File

@ -242,7 +242,9 @@ if [ ${hddIsAutoMounted} -eq 0 ]; then
echo "state=recovered" >> /home/admin/raspiblitz.recover.info
# save log file for inspection before reboot
cp $logFile /home/admin/raspiblitz.recover.log
sudo shutdown -r now
echo "shutdown in 1min" >> $logFile
sync
sudo shutdown -r -F +1
exit 0
else
echo "OK - No config file found: ${configFile}" >> $logFile