mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 22:58:43 +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
|
||||
# set flag that system is freshly recovered and needs setup dialogs
|
||||
echo "state=recovered" >> /home/admin/raspiblitz.recover.info
|
||||
echo "shutdown in 1min" >> $logFile
|
||||
# save log file for inspection before reboot
|
||||
cp $logFile /home/admin/raspiblitz.recover.log
|
||||
echo "shutdown in 1min" >> $logFile
|
||||
sync
|
||||
|
||||
sudo shutdown -r -F +1
|
||||
sudo shutdown -r -F -t 60
|
||||
exit 0
|
||||
else
|
||||
echo "OK - No config file found: ${configFile}" >> $logFile
|
||||
|
|
Loading…
Add table
Reference in a new issue