From f1a48c15ae9a0c44ea229911a7523b35d13a0e48 Mon Sep 17 00:00:00 2001 From: Tomas Mudrunka Date: Wed, 1 Aug 2012 05:02:00 +0200 Subject: [PATCH] Little fix --- c/goertzel/sleepmon.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/c/goertzel/sleepmon.sh b/c/goertzel/sleepmon.sh index 75eb6ee..cb28c71 100755 --- a/c/goertzel/sleepmon.sh +++ b/c/goertzel/sleepmon.sh @@ -28,10 +28,10 @@ arecord | ./goertzel -i -q -a -t $tresh -s 2000 | while read line; do echo -ne "$time\t$date\t$(date '+%F%t%r')\t" test "$level" -gt "$tresh" && { echo -n "Nothing detected..."; - $screen && xset dpms force off + $screen && xset dpms force off || true; } || { echo -n "Motion detected!!!!"; - $screen && xset dpms force on + $screen && xset dpms force on; } test "$lastdate" != 0 && { after=$(( $date - $lastdate)) -- 2.30.2