cleanups to allow networking.sh to run on other hardware types (asus)
SVN-Revision: 13
This commit is contained in:
parent
8cde922064
commit
7c235625b6
@ -39,9 +39,9 @@ if_valid () {
|
|||||||
|
|
||||||
wifi_init () {
|
wifi_init () {
|
||||||
echo "# --- wifi init ---"
|
echo "# --- wifi init ---"
|
||||||
hwaddr=$(nvram_get il0macaddr)
|
# assume wifi is eth2, fall back to eth1
|
||||||
[ -z "$hwaddr" ] && hwaddr=$(nvram_get wl0_hwaddr)
|
if="eth2"
|
||||||
if=$(mac2if $hwaddr)
|
if_valid $if || if="eth1"
|
||||||
$DEBUG wlconf $if up
|
$DEBUG wlconf $if up
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -123,7 +123,8 @@ wifi_init
|
|||||||
$DEBUG vconfig set_name_type VLAN_PLUS_VID_NO_PAD
|
$DEBUG vconfig set_name_type VLAN_PLUS_VID_NO_PAD
|
||||||
|
|
||||||
# hacks for 1.x hardware
|
# hacks for 1.x hardware
|
||||||
[ -z "$(nvram_get vlan0hwname)" ] && {
|
[ "$(nvram get boardnum)" = "42" ] && \
|
||||||
|
[ "$(nvram get boardtype)" = "bcm94710dev" ] && {
|
||||||
echo "# 1.x HACK"
|
echo "# 1.x HACK"
|
||||||
vlan1hwname="et0"
|
vlan1hwname="et0"
|
||||||
vlan2hwname="et0"
|
vlan2hwname="et0"
|
||||||
|
Loading…
Reference in New Issue
Block a user