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

7 lines
160 B
Bash
Executable File

#!/bin/bash
if [ "$1" = "pushed" ] || [ "$1" = "released" ]
then
logger -t $(basename $0) "writing $1 to doorlockbutton"
echo "$1" > /run/doorlockbutton
fi