summaryrefslogtreecommitdiffstats
path: root/target/linux/brcm63xx/base-files/lib/brcm63xx.sh
diff options
context:
space:
mode:
authorJonas Gorski <jogo@openwrt.org>2013-01-23 10:12:40 +0000
committerJonas Gorski <jogo@openwrt.org>2013-01-23 10:12:40 +0000
commit8411e5c06e9db553d4976744751bd15cb0817b30 (patch)
treeb8e22fef30ec120c40bcfa78947ddc324e647201 /target/linux/brcm63xx/base-files/lib/brcm63xx.sh
parent17d51121a621082f1cda4a7224afc1915f95d5c6 (diff)
downloadmaster-31e0f0ae-8411e5c06e9db553d4976744751bd15cb0817b30.tar.gz
master-31e0f0ae-8411e5c06e9db553d4976744751bd15cb0817b30.tar.bz2
master-31e0f0ae-8411e5c06e9db553d4976744751bd15cb0817b30.zip
bcm63xx: switch to b53 and swconfig
Switch to using the B53 switch driver where appropriate. Use a non-tagged default config where it isn't confirmed to be working. Remove the switch configuration in preinit as the switch will now be configured by the driver to use port isolation to prevent leakage between lan and wan. While at it, also provide a switch config for Neufbox 6. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 35307
Diffstat (limited to 'target/linux/brcm63xx/base-files/lib/brcm63xx.sh')
-rwxr-xr-xtarget/linux/brcm63xx/base-files/lib/brcm63xx.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/brcm63xx/base-files/lib/brcm63xx.sh b/target/linux/brcm63xx/base-files/lib/brcm63xx.sh
index 999f775171..8116e807dd 100755
--- a/target/linux/brcm63xx/base-files/lib/brcm63xx.sh
+++ b/target/linux/brcm63xx/base-files/lib/brcm63xx.sh
@@ -13,7 +13,7 @@ brcm63xx_has_reset_button=""
brcm63xx_detect() {
board_name=$(awk 'BEGIN{FS="[ \t:/]+"} /system type/ {print $4}' /proc/cpuinfo)
- if [ "$board_name" = "96358VW" ] && [ -e /proc/switch/eth1/enable ]; then
+ if [ "$board_name" = "96358VW" ] && [ -n "$(swconfig dev eth1 help 2>/dev/null)" ]; then
board_name="DVAG3810BN"
fi