aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm47xx
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2014-07-26 12:33:48 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2014-07-26 12:33:48 +0000
commit7a3b3b9d732111b929a91254242f5ce3d2ccd2bc (patch)
tree41693d56ff67cb752c2c4e0405aba6e49d8273e6 /target/linux/brcm47xx
parent009e36806b89a29141dbe28b170117f5330b06da (diff)
downloadupstream-7a3b3b9d732111b929a91254242f5ce3d2ccd2bc.tar.gz
upstream-7a3b3b9d732111b929a91254242f5ce3d2ccd2bc.tar.bz2
upstream-7a3b3b9d732111b929a91254242f5ce3d2ccd2bc.zip
brcm47xx: don't create named switch_vlan sections
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@gmail.com> SVN-Revision: 41835
Diffstat (limited to 'target/linux/brcm47xx')
-rwxr-xr-xtarget/linux/brcm47xx/base-files/etc/init.d/netconfig2
1 files changed, 0 insertions, 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 193d4336cb..1890cd0069 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
}
}