[Debian-eeepc-devel] Fix for 2.6.26 PCI hotplug error when enabling wireless
oz
oz at bluemonk.de
Sat Aug 30 09:17:40 UTC 2008
On Sat, 30 Aug 2008 11:08:49 +0200
oz <oz at bluemonk.de> 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
More information about the Debian-eeepc-devel
mailing list