From 18d730efee1d845f99f53f001b4f39b6311aa5f3 Mon Sep 17 00:00:00 2001 From: nbd Date: Sat, 6 May 2006 02:34:35 +0000 Subject: rename wl.o wireless interface from ethX to wl0 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@3732 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../package/base-files/files/brcm-2.4/etc/hotplug.d/net/09-net | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'openwrt/target/linux/package/base-files/files/brcm-2.4/etc') 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 856d26b65..9dd77963b 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 } -- cgit v1.2.3