aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@openwrt.org>2014-06-07 15:41:41 +0000
committerHauke Mehrtens <hauke@openwrt.org>2014-06-07 15:41:41 +0000
commit6143a2a98d9eb441757c392b3768c333fa8e8fee (patch)
tree5eb4974897ec2b2745182cae6263cb7d65c1ef45 /target/linux
parent758e298a5ddb74ad1693c521cb3a4634fe8efc3e (diff)
downloadmaster-187ad058-6143a2a98d9eb441757c392b3768c333fa8e8fee.tar.gz
master-187ad058-6143a2a98d9eb441757c392b3768c333fa8e8fee.tar.bz2
master-187ad058-6143a2a98d9eb441757c392b3768c333fa8e8fee.zip
bcm47xx: use eth0 for switch name
This fixes some strange problems with tg3. I assume that the Ethernet driver was not brought up if the switch was named switch0. This was reported and tested by ernesto (Faulp3lz). Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41042 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rwxr-xr-xtarget/linux/brcm47xx/base-files/etc/init.d/netconfig6
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/brcm47xx/base-files/etc/init.d/netconfig b/target/linux/brcm47xx/base-files/etc/init.d/netconfig
index 915288124c..ced2a42e70 100755
--- a/target/linux/brcm47xx/base-files/etc/init.d/netconfig
+++ b/target/linux/brcm47xx/base-files/etc/init.d/netconfig
@@ -224,14 +224,14 @@ start() {
eval "$network_defs"
[ -n "$vlan1ports" -o -n "$vlan2ports" ] && {
- local cfg=`ucidef_add_switch "switch0" 1 1`
+ local cfg=`ucidef_add_switch "eth0" 1 1`
[ -n "$cfg" ] && uci rename network.$cfg=eth0
[ -n "$vlan1ports" ] && {
- cfg=`ucidef_add_switch_vlan "switch0" 1 "$vlan1ports"`
+ cfg=`ucidef_add_switch_vlan "eth0" 1 "$vlan1ports"`
[ -n "$cfg" ] && uci rename network.$cfg=eth0_1
}
[ -n "$vlan2ports" ] && {
- cfg=`ucidef_add_switch_vlan "switch0" 2 "$vlan2ports"`
+ cfg=`ucidef_add_switch_vlan "eth0" 2 "$vlan2ports"`
[ -n "$cfg" ] && uci rename network.$cfg=eth0_2
}
}