[ltp] T41 - wifi and Access IBM button
Carlos Alocén Alcalde
linux-thinkpad@linux-thinkpad.org
Sun, 26 Dec 2004 16:52:31 +0100
I hope this script may be useful for someone.
Copy like this:
-rwxr-x--- 1 root wheel 306 dic 26 16:48 /usr/local/bin/ipw2100.sh
And configure kde's control panel to execute it when press Access IBM Button,
or whatever you want.
Happy new year.
#!/binbash
# /usr/local/bin/ipw2100.sh
# put this script in
# kde 3.3.x | Control Panel | ... | ThinkPad button
# and put your user in sudoers
if [ -n "$(lsmod | grep ipw2100)" ]
then
logger "ipw2100 enabled, disabling ..."
sudo rmmod ipw2100
else
echo "Enabling ipw2100 ..."
sudo modprobe ipw2100
fi