[OpenWrt-Devel] [PATCH] brcm47xx: don't create named switch_vlan sections

Rafał Miłecki zajec5 at gmail.com
Fri Jul 25 02:32:09 EDT 2014


It doesn't seem to be used anywhere, it's incompatible with other
targets and can be confusing. People may think they need to update
section name every time they change VLAN ID (well, even I was doing
that).

Signed-off-by: Rafał Miłecki <zajec5 at gmail.com>
---
 target/linux/brcm47xx/base-files/etc/init.d/netconfig | 2 --
 1 file changed, 2 deletions(-)

diff --git a/target/linux/brcm47xx/base-files/etc/init.d/netconfig b/target/linux/brcm47xx/base-files/etc/init.d/netconfig
index 193d433..1890cd0 100755
--- a/target/linux/brcm47xx/base-files/etc/init.d/netconfig
+++ b/target/linux/brcm47xx/base-files/etc/init.d/netconfig
@@ -218,11 +218,9 @@ start() {
 		[ -n "$cfg" ] && uci rename network.$cfg=eth0
 		[ -n "$vlan1ports" ] && {
 			cfg=`ucidef_add_switch_vlan "$switchname" 1 "$vlan1ports"`
-			[ -n "$cfg" ] && uci rename network.$cfg=eth0_1
 		}
 		[ -n "$vlan2ports" ] && {
 			cfg=`ucidef_add_switch_vlan "$switchname" 2 "$vlan2ports"`
-			[ -n "$cfg" ] && uci rename network.$cfg=eth0_2
 		}
 	}
 
-- 
1.8.4.5
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list