Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Control script for Raspberry Pi
- # Runs at boot-up, as root
- FLAG_FILE=/home/pi/donotshutdown
- # Run the application.
- my_application
- if [ -f $FLAG_FILE ]
- then
- # Flag file exists, no shut down
- rm $FLAG_FILE
- else
- # Proceed to shut down
- shutdown now
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement