Restart Reminder

bmee
Contributor

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.

1 ACCEPTED SOLUTION

drtaru
New Contributor III

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 solution in original post

3 REPLIES 3

drtaru
New Contributor III

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.

bmee
Contributor

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

donmontalvo
Esteemed Contributor III

Or shutdown -r now.

--
https://donmontalvo.com