On Sat, 30 Aug 2008 11:08:49 +0200
oz <[EMAIL PROTECTED]> wrote:

> case $1 in
>     on|enable)
>         if [ $(cat $wlan_control) = 0 ]; then
>             modprobe -r pciehp
>             modprobe pciehp pciehp_force=1 pciehp_slot_with_bus=1
>              
> #            detect_wlan
> #           modprobe $WLAN_MOD
>             # adding a sleep here, due to some bug the driver loading
> is not atomic here # and could cause ifconfig to fail
> #           sleep 1
> #           if ! ifconfig $WLAN_IF up; then exec $0 off; fi
>         fi
>         ;;


Oops, I made a cut & paste error and forgot 'echo 1 > $wlan_control'
in my last post, sorry!

This would be correct:

case $1 in
    on|enable)
        if [ $(cat $wlan_control) = 0 ]; then
            modprobe -r pciehp
            modprobe pciehp pciehp_force=1 pciehp_slot_with_bus=1
            echo 1 > $wlan_control
#            detect_wlan
#           modprobe $WLAN_MOD
            # adding a sleep here, due to some bug the driver loading
is not atomic here # and could cause ifconfig to fail
#           sleep 1
#           if ! ifconfig $WLAN_IF up; then exec $0 off; fi
        fi
        ;;


- oz

_______________________________________________
Debian-eeepc-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/debian-eeepc-devel

Reply via email to