X-Git-Url: https://git.realraum.at/?a=blobdiff_plain;f=powersensordaemon%2Fswitch.cgi;h=19d863e27efab655de9e7ac09c2de611e580b5f3;hb=4836dbabd9011a70ff28a07aa19083538e20f56f;hp=2108955677e8c8b2de2ec9c234eaba395c4afb42;hpb=9762669d84f32ad981c06870b628d02d63adc0ae;p=svn42.git diff --git a/powersensordaemon/switch.cgi b/powersensordaemon/switch.cgi index 2108955..19d863e 100755 --- a/powersensordaemon/switch.cgi +++ b/powersensordaemon/switch.cgi @@ -30,7 +30,7 @@ VALID_SEND_IDS="ymhpoweron ymhcd ymhwdtv ymhtuner ymhaux ymhsattv ymhvolmute ymh [ "$POWER" == "send" ] && POWER=on if [ "$POWER" == "on" -o "$POWER" == "off" ]; then - for CHECKID in $VALID_ONOFF_IDS $VALID_SEND_IDS; do + for CHECKID in $VALID_ONOFF_IDS $VALID_SEND_IDS $VALID_SEND_IDS_CUSTOM_DISPLAY; do if [ "$CHECKID" == "$ID" ]; then echo "power $POWER $ID" | usocket $UNIXSOCK echo "Content-type: text/html" @@ -137,7 +137,9 @@ echo ' //google chrome workaround' echo ' req.setRequestHeader("googlechromefix","");' echo ' req.send(null);' echo '}' +[ "$NOFLOAT" == "1" ] && tail -n+6 /www/ymhremote.html | head -n 58 echo '' +[ "$NOFLOAT" == "1" ] && tail -n+67 /www/ymhremote.html | head -n 37 echo '