summaryrefslogtreecommitdiff
path: root/openwrt/target/linux/package/base-files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-05-06 02:34:35 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-05-06 02:34:35 +0000
commit42544ede7a13108221f17e5c2228dbd9e7abeebf (patch)
tree57fedd8cec34e2b92ad6649822d6d285e5bb75e1 /openwrt/target/linux/package/base-files
parente5d63ed4c7ad38c90b55c7fbfd6a2ef42cafb0a9 (diff)
downloadmtk-20170518-42544ede7a13108221f17e5c2228dbd9e7abeebf.zip
mtk-20170518-42544ede7a13108221f17e5c2228dbd9e7abeebf.tar.gz
mtk-20170518-42544ede7a13108221f17e5c2228dbd9e7abeebf.tar.bz2
rename wl.o wireless interface from ethX to wl0
SVN-Revision: 3732
Diffstat (limited to 'openwrt/target/linux/package/base-files')
-rw-r--r--openwrt/target/linux/package/base-files/files/brcm-2.4/etc/hotplug.d/net/09-net6
1 files changed, 5 insertions, 1 deletions
diff --git a/openwrt/target/linux/package/base-files/files/brcm-2.4/etc/hotplug.d/net/09-net b/openwrt/target/linux/package/base-files/files/brcm-2.4/etc/hotplug.d/net/09-net
index 856d26b..9dd7796 100644
--- a/openwrt/target/linux/package/base-files/files/brcm-2.4/etc/hotplug.d/net/09-net
+++ b/openwrt/target/linux/package/base-files/files/brcm-2.4/etc/hotplug.d/net/09-net
@@ -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
}