Little fix
authorTomas Mudrunka <tomas@mudrunka.cz>
Wed, 1 Aug 2012 03:02:00 +0000 (05:02 +0200)
committerTomas Mudrunka <tomas@mudrunka.cz>
Wed, 1 Aug 2012 03:02:00 +0000 (05:02 +0200)
c/goertzel/sleepmon.sh

index 75eb6ee7f63290fbc7ec76c372aada83d57c14d5..cb28c7187de5e2a7d82c66cfa7f70024293fd5b9 100755 (executable)
@@ -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))
This page took 0.096718 seconds and 4 git commands to generate.