From: Tomas Mudrunka Date: Wed, 1 Aug 2012 03:02:00 +0000 (+0200) Subject: Little fix X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=f1a48c15ae9a0c44ea229911a7523b35d13a0e48;p=mirrors%2FPrograms.git Little fix --- 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))