From: Bernhard Tittelbach Date: Tue, 27 Jul 2010 23:42:09 +0000 (+0000) Subject: .. X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;h=edb49e1ec536c900f8702e9a4d86438113b673b2;p=svn42.git .. --- diff --git a/powersensordaemon/switch.cgi b/powersensordaemon/switch.cgi index ce97a6c..749300a 100755 --- a/powersensordaemon/switch.cgi +++ b/powersensordaemon/switch.cgi @@ -20,10 +20,10 @@ VALID_ONOFF_IDS="decke lichter all werkzeug labor dart logo idee deckehinten dec VALID_SEND_IDS="stereo ymhvolup ymhvoldown ymhcd ymhwdtv ymhtuner" -if [ "$POWER" == "on" -o "$POWER" == "off" -o "$POWER" == "send"]; then +[ "$POWER" == "send" ] && POWER=on +if [ "$POWER" == "on" -o "$POWER" == "off" ]; then for CHECKID in $VALID_ONOFF_IDS $VALID_SEND_IDS; do if [ "$CHECKID" == "$ID" ]; then - [ "$POWER" == "send" ] && POWER=on echo "power $POWER $ID" | usocket $UNIXSOCK echo "Content-type: text/html" echo ""