summaryrefslogtreecommitdiffstats
path: root/package/base-files/brcm-2.6/etc/init.d/netconfig
diff options
context:
space:
mode:
Diffstat (limited to 'package/base-files/brcm-2.6/etc/init.d/netconfig')
-rwxr-xr-xpackage/base-files/brcm-2.6/etc/init.d/netconfig10
1 files changed, 8 insertions, 2 deletions
diff --git a/package/base-files/brcm-2.6/etc/init.d/netconfig b/package/base-files/brcm-2.6/etc/init.d/netconfig
index 7a818dc5d..a7cc322d8 100755
--- a/package/base-files/brcm-2.6/etc/init.d/netconfig
+++ b/package/base-files/brcm-2.6/etc/init.d/netconfig
@@ -2,11 +2,12 @@
# Copyright (C) 2006 OpenWrt.org
START=05
+
start() {
[ -e /etc/config/network ] && exit 0
-
+
mkdir -p /etc/config
-
+
(
if grep -E 'mtd0: 000(6|a)0000' /proc/mtd 2>&- >&-; then
# WGT634u
@@ -40,6 +41,11 @@ start() {
c["wan_ifname"]=""
}
}
+ if (nvram["boardtype"] == "bcm94710r4") {
+ # Toshiba WRC-1000
+ c["lan_ifname"] = "eth0"
+ c["wan_ifname"] = "eth1"
+ }
if (nvram["boardtype"] == "wgt634u") {
c["vlan0ports"] = "0 1 2 3 5*"
c["vlan1ports"] = "4 5"