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