Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# Author: Aysad Kozanoglu
# quick launch script:
# wget -qO && chmod a+x ; sh
while true; do
read -p "Do you wish to reboot server?" yn
case $yn in
[Yy]* ) echo "OK, server will boot in 5 sec..."; sleep 4; shutdown -r now; break;;
[Nn]* ) exit;;
* ) echo "Please answer y for yes or n for no.";;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.