rename wl.o wireless interface from ethX to wl0
[openwrt/svn-archive/archive.git] / openwrt / target / linux / package / base-files / files / brcm-2.4 / etc / hotplug.d / net / 09-net
index 856d26b653b5b998659293b9535d634cac1144ea..9dd77963ba9e6a43157f78ef79a8c54301659161 100644 (file)
@@ -1,5 +1,5 @@
 #!/bin/sh
-setup_eth()
+setup_wl()
 {
        [ -f /proc/net/wl0 ] && {
                lsmod | grep wlcompat >&- || insmod wlcompat
@@ -7,6 +7,9 @@ setup_eth()
        iwconfig "$INTERFACE" 2>&- | grep -v 'no wireless' >&- && {
                /sbin/wifi
        }
+}
+setup_eth()
+{
        [ -d /proc/switch ] || {
                insmod switch-core
                insmod switch-robo || insmod switch-adm
@@ -30,6 +33,7 @@ do_register()
 {
        case "${INTERFACE%%[0-9]*}" in
                eth) setup_eth;;
+               wl) setup_wl;;
        esac
 }