jcsid a écrit : > > > Niccolo Rigacci a écrit : >> On Sun, Jun 08, 2008 at 10:19:50PM +0200, jcsid wrote: >> >>> Not 1, not 2 and not 10....<br> >>> I tried this and it works:<br> >>> >> >> case $1 in >> on) >> enable >> if ! ifconfig ath0 up; then >> disable >> enable; >> fi >> Can you see how many times the disable/enable loop runs? >> Trace adding a command like this: >> >> date +%H:%M:%S:%N >> /tmp/wireless.log >> >> I'm still convinced that some insmod/rmmod command needs some time to >> settle, may be pciehp? >> >> > I did and it loops just once, the first time I desactivate and > reactivate the wifi after booting my eeepc. > It doesn't loop after, switching on the wifi working perfectly... > /(some reboots after...)/ > I got it! > Pciehp is not loaded at startup: I wrote > pciehp pciehp_force=1 > in /etc/modules, and rewrote my wireless.sh: > > #!/bin/sh > > wlan_control=/proc/acpi/asus/wlan > case $1 in > on) > if [ $(cat $wlan_control) = 0 ]; then > echo 1 > $wlan_control > modprobe ath_pci > ifup ath0 > fi > ;; off) > if [ $(cat $wlan_control) = 1 ]; then > ifdown --force ath0 > rmmod ath_pci > echo 0 > $wlan_control > fi > ;; > *) > echo "Usage: $0 [on|off]" > exit 1 > ;; > esac > > > It works now perfectly... I think there is no need to reload pciehp > And the lines ifup and ifdown don't seem to be necessary
_______________________________________________ Debian-eeepc-devel mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/debian-eeepc-devel
