X-Git-Url: https://git.realraum.at/?p=svn42.git;a=blobdiff_plain;f=powersensordaemon%2Fswitch.cgi;h=baaf33dc431888ee83e9f57f3a2581e3077daed5;hp=fb67efa368f8cc61f6fc3a884427e488ee61d4f6;hb=ab78866ce6c7598802ccdb9101899accb4892733;hpb=a9e3a5a521eeed2a92522fabcbb517474e6a4871
diff --git a/powersensordaemon/switch.cgi b/powersensordaemon/switch.cgi
index fb67efa..baaf33d 100755
--- a/powersensordaemon/switch.cgi
+++ b/powersensordaemon/switch.cgi
@@ -10,6 +10,10 @@ for QUERY in `echo $QUERY_STRING | tr '&' ' '`; do
POWER='?'
elif [ "$POWER" == "?" ]; then
POWER=$VALUE
+ elif [ "$VALUE" == "mobile" ]; then
+ MOBILE='1'
+ elif [ "$POWER" == "?" ]; then
+ POWER=$VALUE
elif [ "$VALUE" == "ajax" ]; then
AJAX='?'
elif [ "$AJAX" == "?" ]; then
@@ -137,8 +141,12 @@ for DISPID in $VALID_ONOFF_IDS; do
echo ""
fi
+ if [ "$MOBILE" == "1" ]; then
+ echo "
"
+ fi
done
echo ""
+if [ "$MOBILE" != "1" ]; then
echo "