From: Hauke Mehrtens Date: Sat, 7 Jun 2014 15:41:41 +0000 (+0000) Subject: bcm47xx: use eth0 for switch name X-Git-Tag: reboot~7013 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9dc5fb9103b1837fab38b58d3a6a8c49c9789207;p=openwrt%2Fopenwrt.git 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 SVN-Revision: 41042 --- 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 } }