#! /bin/sh
### BEGIN INIT INFO
# Provides: keypad
# Description: Starts the keypad script
### END INIT INFO
 
case "$1" in
    start)
        #echo "Keypad wird gestartet"
        # Starte Programm
        sudo python /var/local/keypad/keypad.py
        ;;
    stop)
        # echo "Keypad wird beendet"
        # Beende Programm
        sudo killall /var/local/keypad/keypad.py
        ;;
    *)
        echo "Benutzt: /etc/init.d/keypad {start|stop}"
        exit 1
        ;;
esac
 
exit 0
