Skip to content

Instantly share code, notes, and snippets.

@flowolf flowolf/shutdown.rc
Created Jul 5, 2018

Embed
What would you like to do?
#! /bin/sh
### BEGIN INIT INFO
# Provides: pi_shutdown
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: S
# Default-Stop:
# Short-Description: Shutdown on GPIO trigger
# Description: Python script listens for GPIO and runs shutdown command
### END INIT INFO
sudo python /home/pi/scripts/shutdown.py &
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.