]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/wlan-ng/files/resume
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / wlan-ng / files / resume
1 #!/bin/sh
2 # This script is run on resume to force a down and up of any linux-wlanng
3 # iterfaces. Otherwise they could get into a weird state.
4 IFACES=$(ifconfig | grep -B 1 ^wlan | cut -d ' ' -f 1)
5 for iface in $IFACES; do
6         echo down $ifcase >>/tmp/log
7         ifdown $iface || ifconfig $iface down
8 done
9
10 rmmod prism2_pci 2>/dev/null
11 rmmod prism2_usb 2>/dev/null
12 rmmod prism2_cs 2>/dev/null
13 rmmod prism2_plx 2>/dev/null
14 rmmod p80211 2>/dev/null
15
16 # There is a race here for some reason.
17 sleep 2
18
19 for iface in $IFACES; do
20         ifup $iface
21 done
22