Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #!/bin/bash
  2. # Control script for Raspberry Pi
  3. # Runs at boot-up, as root
  4.  
  5. FLAG_FILE=/home/pi/donotshutdown
  6.  
  7. # Run the application.
  8. my_application
  9.  
  10. if [ -f $FLAG_FILE ]
  11. then
  12. # Flag file exists, no shut down
  13. rm $FLAG_FILE
  14. else
  15. # Proceed to shut down
  16. shutdown now
  17. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement