mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-25 07:07:46 +01:00
reboot change on recovery
This commit is contained in:
parent
955db904d8
commit
1525207dc8
1 changed files with 2 additions and 3 deletions
|
@ -390,12 +390,11 @@ if [ ${isMounted} -eq 0 ]; then
|
||||||
echo "rebooting" >> $logFile
|
echo "rebooting" >> $logFile
|
||||||
# set flag that system is freshly recovered and needs setup dialogs
|
# set flag that system is freshly recovered and needs setup dialogs
|
||||||
echo "state=recovered" >> /home/admin/raspiblitz.recover.info
|
echo "state=recovered" >> /home/admin/raspiblitz.recover.info
|
||||||
|
echo "shutdown in 1min" >> $logFile
|
||||||
# save log file for inspection before reboot
|
# save log file for inspection before reboot
|
||||||
cp $logFile /home/admin/raspiblitz.recover.log
|
cp $logFile /home/admin/raspiblitz.recover.log
|
||||||
echo "shutdown in 1min" >> $logFile
|
|
||||||
sync
|
sync
|
||||||
|
sudo shutdown -r -F -t 60
|
||||||
sudo shutdown -r -F +1
|
|
||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
echo "OK - No config file found: ${configFile}" >> $logFile
|
echo "OK - No config file found: ${configFile}" >> $logFile
|
||||||
|
|
Loading…
Add table
Reference in a new issue