pidor/scripts/lockbutton.sh.d/01updatestate

7 lines
160 B
Plaintext
Raw Normal View History

2014-10-01 16:31:55 +02:00
#!/bin/bash
if [ "$1" = "pushed" ] || [ "$1" = "released" ]
then
logger -t $(basename $0) "writing $1 to doorlockbutton"
echo "$1" > /run/doorlockbutton
fi