Skip to main content
Solved

Restart Reminder

  • December 9, 2019
  • 3 replies
  • 31 views

Forum|alt.badge.img+6

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.

3 replies

drtaru
Forum|alt.badge.img+13
  • 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+6
  • Author
  • Contributor
  • December 9, 2019

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


donmontalvo
Forum|alt.badge.img+36
  • Hall of Fame
  • December 9, 2019

Or shutdown -r now.