Created
November 24, 2018 04:28
-
-
Save rudrathegreat/bf76807eb81fd1f17efa0274e0a174bc to your computer and use it in GitHub Desktop.
Program to help shutdown your Linux Machine
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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