Skip to content

Instantly share code, notes, and snippets.

@rudrathegreat
Created November 24, 2018 04:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rudrathegreat/bf76807eb81fd1f17efa0274e0a174bc to your computer and use it in GitHub Desktop.
Save rudrathegreat/bf76807eb81fd1f17efa0274e0a174bc to your computer and use it in GitHub Desktop.
Program to help shutdown your Linux Machine
echo 'Do you want to shutdown the Raspberry Pi?'
read $variable
if [[$variable = 'Y']]; then
echo 'As you wish'
echo 'Goodbye!'
sudo shutdown -h now
elif [[$variable = 'N']]; then
echo 'Ok. As you wish'
echo 'See you in a tic-tac!'
else;
echo 'Please. Try Again'
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment