mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2024-11-20 10:12:06 +01:00
softer shutdown after after update/recover
This commit is contained in:
parent
d930d59d9a
commit
f600588f99
@ -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}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user