Author: hauke
Date: 2014-06-07 17:41:41 +0200 (Sat, 07 Jun 2014)
New Revision: 41042

Modified:
   trunk/target/linux/brcm47xx/base-files/etc/init.d/netconfig
Log:
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 <[email protected]>


Modified: trunk/target/linux/brcm47xx/base-files/etc/init.d/netconfig
===================================================================
--- trunk/target/linux/brcm47xx/base-files/etc/init.d/netconfig 2014-06-07 
15:19:40 UTC (rev 41041)
+++ trunk/target/linux/brcm47xx/base-files/etc/init.d/netconfig 2014-06-07 
15:41:41 UTC (rev 41042)
@@ -224,14 +224,14 @@
        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
                }
        }
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to