| The Following User Says Thank You to Schturman For This Useful Post: | ||
|
|
01-22-2013
, 03:43 PM
|
|
Posts: 195 |
Thanked: 128 times |
Joined on Sep 2012
@ Trento, Italy
|
#62
|
|
|
01-23-2013
, 12:04 PM
|
|
Moderator |
Posts: 5,844 |
Thanked: 5,291 times |
Joined on Nov 2011
|
#63
|
|
|
01-23-2013
, 12:15 PM
|
|
Moderator |
Posts: 5,844 |
Thanked: 5,291 times |
Joined on Nov 2011
|
#64
|
|
|
01-23-2013
, 01:55 PM
|
|
|
Posts: 401 |
Thanked: 265 times |
Joined on Jul 2012
@ Finland
|
#65
|

#!/bin/sh
STATUS=$(/sbin/mcetool --status | grep -v grep | grep Cellular | awk '{print $2}' | head -1)
if [ $STATUS == "enabled" ]
then
sed -i 's/OFF/ON/' /home/user/.local/share/applications/toggle_flight.desktop
dbus-send --print-reply --dest=com.meego.core.MNotificationManager /notificationmanager com.meego.core.MNotificationManager.addNotification uint32:0 uint32:0 string:'device' string:'' string:"Flightmode ON" string:'' string:"/home/user/.local/share/icons/hicolor/apps/flightON.png" uint32:0
/sbin/mcetool --disable-radio=cellular
else
sed -i 's/ON/OFF/' /home/user/.local/share/applications/toggle_flight.desktop
dbus-send --print-reply --dest=com.meego.core.MNotificationManager /notificationmanager com.meego.core.MNotificationManager.addNotification uint32:0 uint32:0 string:'device' string:'' string:"Flightmode OFF" string:'' string:"/home/user/.local/share/icons/hicolor/apps/flightOFF.png" uint32:0
/sbin/mcetool --enable-radio=cellular
fi
|
|
01-23-2013
, 06:20 PM
|
|
Posts: 195 |
Thanked: 128 times |
Joined on Sep 2012
@ Trento, Italy
|
#66
|
Does it prompt every now and then or only once? Also I think Wazapp requests for the connection so if you are going to toggle wlan might as well keep Wazapp closed
i'll do that, also because when if i keep wazapp open with no connection the phone gets really warm and the battery drains faster so it's better in every way
![]() |
| Thread Tools | Search this Thread |
|
Lausanne & Lyon de descente...
----------------
Schturman home page
N9 QuickTweak - If you like my work, you can donate here . Thanks!