summaryrefslogtreecommitdiff
path: root/target/linux/brcm47xx
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2013-02-13 16:05:52 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2013-02-13 16:05:52 +0000
commit54ca3eed5d3d0c9e97c8b27ac447e803f867e373 (patch)
treef23ab02847355e2573535340b82ddec77a2d19b7 /target/linux/brcm47xx
parent17c18e23abc68753fb30d3bafd2faaa9889da0ce (diff)
downloadmtk-20170518-54ca3eed5d3d0c9e97c8b27ac447e803f867e373.zip
mtk-20170518-54ca3eed5d3d0c9e97c8b27ac447e803f867e373.tar.gz
mtk-20170518-54ca3eed5d3d0c9e97c8b27ac447e803f867e373.tar.bz2
brcm47xx: configure vlan correctly on some recent devices.
SVN-Revision: 35587
Diffstat (limited to 'target/linux/brcm47xx')
-rwxr-xr-xtarget/linux/brcm47xx/base-files/etc/init.d/netconfig5
1 files changed, 4 insertions, 1 deletions
diff --git a/target/linux/brcm47xx/base-files/etc/init.d/netconfig b/target/linux/brcm47xx/base-files/etc/init.d/netconfig
index 303ab56..229beb9 100755
--- a/target/linux/brcm47xx/base-files/etc/init.d/netconfig
+++ b/target/linux/brcm47xx/base-files/etc/init.d/netconfig
@@ -166,7 +166,10 @@ start() {
}
# generic broadcom 4716 processor with 53115 switch
- if (tolower(nvram["boardtype"]) == "0x04cf") {
+ if ((tolower(nvram["boardtype"]) == "0x04cf") || \
+ (tolower(nvram["boardtype"]) == "0xf5b2") || \
+ (tolower(nvram["boardtype"]) == "0xf52a") || \
+ (tolower(nvram["boardtype"]) == "0xf52e")) {
c["vlan0ports"] = "1 2 3 4 8*"
c["vlan1ports"] = "0 8"
}