if `grep -q wl1251 /proc/modules` ; then
rmmod wl1251_sdio
rmmod wl1251
- # rmmod board-omap3pandora-wifi
+ rmmod board-omap3pandora-wifi
fi
}
insmod $(busybox find /lib/modules/$(uname -r)/updates -name "wl1251_sdio.ko")
insmod $(busybox find /lib/modules/$(uname -r) -name "board-omap3pandora-wifi.ko")
- # restore phy0 related LED triggers (they come from mac80211.ko)
+ # restore phyX related LED triggers (they come from mac80211.ko)
+ sleep 0.5
if [ -e /sys/class/leds/ ] ; then
for led in /sys/class/leds/* ; do
- trigger=$(grep "$(basename $led)" /etc/default/leds | grep "phy0" | awk '{print $2}')
+ trigger=$(grep "$(basename $led)" /etc/default/leds | grep "phy" | awk '{print $2}')
if [ "x$trigger" != "x" ] ; then
echo "$trigger" > "$led/trigger"
fi