You are not logged in.
Pages: 1
My notebook comes with a fancy wireless on/off system in such way that I can't use rf_kill. So I decided to approach it from a different way. This script will let you load or unload the wireless network module. It is a 'modified version' of this one (thank you).
#!/bin/bash
# this is the script /usr/bin/wireless-oo
STATE=$(cat /etc/wireless-oo/status)
if [ "$STATE" == 1 ]
then
modprobe -r ipw2100
echo 0 > /etc/wireless-oo/status
else
modprobe ipw2100
echo 1 > /etc/wireless-oo/status
fi
exit 0
Then I used visudo to give normal users control over it, and made a link in de taskbar. Instand on and off, with just one mouse click .
There's just one thing, is the wireless device radio also off when you unprobe the module? Because then I can safe some energy with this script too.
Last edited by YscO (2008-02-26 22:14:03)
Offline
Pages: 1