summaryrefslogtreecommitdiffstats
path: root/target/linux/brcm63xx/base-files/lib/brcm63xx.sh
diff options
context:
space:
mode:
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 999f77517..8116e807d 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