[Debian-eeepc-devel] Bug#497173: wireless.sh for eeepc 901

oz oz at bluemonk.de
Sun Aug 31 09:13:44 UTC 2008


If the eeepc is a 901-model, the acpi-action 'wireless.sh' can be
simplified to:
--------------------------------------------
#!/bin/sh

. /usr/share/eeepc-acpi-scripts/functions.sh

wlan_control=/sys/devices/platform/eeepc/wlan
[ -e $wlan_control ] || wlan_control=/proc/acpi/asus/wlan # pre-2.6.26

case $1 in
    on|enable)
        if [ $(cat $wlan_control) = 0 ]; then
            echo 1 > $wlan_control
        fi
        ;;
    off|disable)
        if [ $(cat $wlan_control) = 1 ]; then
            echo 0 > $wlan_control
        fi
        ;;
    *)
        echo "Usage: $0 [on|off]"
        exit 1
        ;;
esac
----------------------------------------------

I tested it with a 901, Bios Rev. 1101.





More information about the Debian-eeepc-devel mailing list