From edb49e1ec536c900f8702e9a4d86438113b673b2 Mon Sep 17 00:00:00 2001 From: Bernhard Tittelbach Date: Tue, 27 Jul 2010 23:42:09 +0000 Subject: [PATCH] .. --- powersensordaemon/switch.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 "" -- 1.7.10.4