diff options
author | mbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2004-04-14 05:23:42 +0000 |
---|---|---|
committer | mbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2004-04-14 05:23:42 +0000 |
commit | 78e8b29fb64be81c13eaa02877162c16a8248392 (patch) | |
tree | 5540b5591dbd268939d2bca2cc2ffb092dcbd2f0 /root/etc | |
parent | 40d208dcae30b73e28fe39d333032a30395b56ed (diff) |
cleanups to allow networking.sh to run on other hardware types (asus)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'root/etc')
-rwxr-xr-x | root/etc/networking.sh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/root/etc/networking.sh b/root/etc/networking.sh index bb85511b83..1a2be2e9d9 100755 --- a/root/etc/networking.sh +++ b/root/etc/networking.sh @@ -39,9 +39,9 @@ if_valid () { wifi_init () { echo "# --- wifi init ---" - hwaddr=$(nvram_get il0macaddr) - [ -z "$hwaddr" ] && hwaddr=$(nvram_get wl0_hwaddr) - if=$(mac2if $hwaddr) + # assume wifi is eth2, fall back to eth1 + if="eth2" + if_valid $if || if="eth1" $DEBUG wlconf $if up } @@ -123,7 +123,8 @@ wifi_init $DEBUG vconfig set_name_type VLAN_PLUS_VID_NO_PAD # hacks for 1.x hardware -[ -z "$(nvram_get vlan0hwname)" ] && { +[ "$(nvram get boardnum)" = "42" ] && \ +[ "$(nvram get boardtype)" = "bcm94710dev" ] && { echo "# 1.x HACK" vlan1hwname="et0" vlan2hwname="et0" |