Skip to main content
Solved

Restart Reminder


Forum|alt.badge.img+7

Hello All,

Very new and still learning to scripting but I came across this restart reminder script and having issue with the script not restarting the Mac. I want to add a hard shutdown comment due to FileVault and T2 chip but can't find a spot to add it.
thanks for you help in advance.

Best answer by drtaru

On line 46 change

#reboot

to

shutdown -h now

That will force a shutdown, however, if you are simply wanting a reboot you just need to remove the # which is commenting the restart command out.

View original

3 replies

drtaru
Forum|alt.badge.img+14
  • Contributor
  • Answer
  • December 9, 2019

On line 46 change

#reboot

to

shutdown -h now

That will force a shutdown, however, if you are simply wanting a reboot you just need to remove the # which is commenting the restart command out.


Forum|alt.badge.img+7
  • Author
  • Contributor
  • December 9, 2019

@drtaru OMG that works, I feel like such a noob. Thank you!


donmontalvo
Forum|alt.badge.img+36

Or shutdown -r now.