the same as above, now with changes
This commit is contained in:
parent
3995b4b289
commit
3583fddb7b
4
foodoor
4
foodoor
@ -20,7 +20,7 @@ fi
|
|||||||
|
|
||||||
case $action in
|
case $action in
|
||||||
close|open)
|
close|open)
|
||||||
echo $action | tee $PIPE_PATH |sed 's/open/UNLOCKED/' 's/close/LOCKED' > /tmp/state
|
echo $action | tee $PIPE_PATH |sed 's/open/UNLOCKED/' 's/close/LOCKED/' > /state
|
||||||
;;
|
;;
|
||||||
status)
|
status)
|
||||||
;;
|
;;
|
||||||
@ -32,6 +32,6 @@ esac
|
|||||||
|
|
||||||
if [ $isTriggerActivated -eq 1 ]
|
if [ $isTriggerActivated -eq 1 ]
|
||||||
then
|
then
|
||||||
cat /tmp/state
|
cat /state
|
||||||
sleep 2
|
sleep 2
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user