View Single Post
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#41
Or you can fix it by youself:
Code:
#!/bin/sh

# Toggle WLAN radio state

STATUS=$(/sbin/mcetool --status | grep -v grep | grep WLAN | awk '{print $2}' | head -1)

if [ $STATUS == "enabled" ]
    then
    sed -i 's/On/Off/' /home/user/.local/share/applications/netToggle.desktop
    `/sbin/mcetool --disable-radio=wlan`
    else
    sed -i 's/Off/On/' /home/user/.local/share/applications/netToggle.desktop
    `/sbin/mcetool --enable-radio=wlan`
fi


BTW, nice icons
 

The Following User Says Thank You to Schturman For This Useful Post: