pawayyy
This commit is contained in:
@@ -111,8 +111,12 @@ write_to_log $gitDataLog
|
|||||||
echo -e $gitDataLog >> $idfDir/version-data.txt
|
echo -e $gitDataLog >> $idfDir/version-data.txt
|
||||||
return_status
|
return_status
|
||||||
|
|
||||||
echo "rebooting in ${sleepSecs} seconds. seave and log out" | sudo write princesspi
|
rebootMsg="rebooting in ${sleepSecs} seconds. seave and log out"
|
||||||
echo "sleeping ${sleepSecs} seconds"
|
write_to_log $rebootMsg
|
||||||
|
echo $rebootMsg | sudo write princesspi
|
||||||
|
return_status
|
||||||
|
|
||||||
|
write_to_log "sleeping ${sleepSecs} seconds"
|
||||||
sleep $sleepSecs
|
sleep $sleepSecs
|
||||||
return_status
|
return_status
|
||||||
|
|
||||||
@@ -120,6 +124,6 @@ write_to_log "$(date '+%d/%m/%Y-%H.%M.%S %Z (%s)'): sending final message and re
|
|||||||
echo "rebooting NOW bye bye" | sudo write $myUser
|
echo "rebooting NOW bye bye" | sudo write $myUser
|
||||||
return_status
|
return_status
|
||||||
|
|
||||||
echo -e " === finished ===\n"
|
write_to_log " === finished ===\n"
|
||||||
|
|
||||||
echo sudo reboot
|
echo sudo reboot
|
||||||
|
|||||||
Reference in New Issue
Block a user