1
0
Fork 0
.dotfiles/.dot-files-laptop/.bin/sh/reboot.sh
2025-04-16 20:56:04 -04:00

12 lines
136 B
Bash
Executable file

#!/bin/sh
# Prompt Reboot
{
read -p "Reboot now? [y/n]:" -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
command shutdown -r now
fi
}