From 3583fddb7b84628f2c3df0e30bb62a74b8d378fd Mon Sep 17 00:00:00 2001 From: Zehka Date: Sun, 7 Nov 2021 18:49:54 +0100 Subject: [PATCH] the same as above, now with changes --- foodoor | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/foodoor b/foodoor index 1fe9eb6..9f4cb3d 100755 --- a/foodoor +++ b/foodoor @@ -20,7 +20,7 @@ fi case $action in 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) ;; @@ -32,6 +32,6 @@ esac if [ $isTriggerActivated -eq 1 ] then - cat /tmp/state + cat /state sleep 2 fi