Add timeout to powerstrip at backdoor.
authorAndreas Schiermeier <andreas@schiermeier.name>
Thu, 9 Feb 2017 20:45:01 +0000 (21:45 +0100)
committerAndreas Schiermeier <andreas@schiermeier.name>
Thu, 9 Feb 2017 20:45:01 +0000 (21:45 +0100)
powerblink.sh

index d5bf4a7..bc09b44 100755 (executable)
@@ -29,7 +29,7 @@ function blink {
         echo 0 > /sys/bus/usb/drivers/usbled/*/blue
         ;;
     esac
-    curl -s "http://esp_9b8df9.hq/control?mode=3&led=0&color=$espcol" &> /dev/null
+    timeout -s KILL 2 curl -s "http://esp_9b8df9.hq/control?mode=3&led=0&color=$espcol" &> /dev/null
     sleep 0.1
   done
 }