3 # Released under the GPL
5 # This script simply toggles internal WiFi on or off.
7 if [ "`lsmod | grep wl1251`" ]
9 notify-send -u normal "WLAN" "WLAN is being disabled..." -i /usr/share/icons/hicolor/32x32/apps/nm-no-connection.png
11 rmmod board_omap3pandora_wifi wl1251_sdio wl1251
13 notify-send -u normal "WLAN" "WLAN is being enabled..." -i /usr/share/icons/hicolor/32x32/apps/nm-device-wired.png
14 /etc/init.d/wl1251-init start