diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-10-17 17:07:35 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-10-17 17:07:35 +0000 |
commit | 3f9c9010c1d6739789725ad5aa0847318c1feb1b (patch) | |
tree | d68055abf5fa10baa9d3500eaa9dd82fa12fe21a /package | |
parent | 44d1c9ecf7d600ae104f92b5abb1d26c2753b680 (diff) | |
download | upstream-3f9c9010c1d6739789725ad5aa0847318c1feb1b.tar.gz upstream-3f9c9010c1d6739789725ad5aa0847318c1feb1b.tar.bz2 upstream-3f9c9010c1d6739789725ad5aa0847318c1feb1b.zip |
hacks for supporting the toshiba wrc-1000
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5192 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rwxr-xr-x | package/base-files/brcm-2.4/etc/init.d/netconfig | 5 | ||||
-rwxr-xr-x | package/base-files/brcm-2.6/etc/init.d/netconfig | 10 |
2 files changed, 13 insertions, 2 deletions
diff --git a/package/base-files/brcm-2.4/etc/init.d/netconfig b/package/base-files/brcm-2.4/etc/init.d/netconfig index ca52ee7c59..a7cc322d87 100755 --- a/package/base-files/brcm-2.4/etc/init.d/netconfig +++ b/package/base-files/brcm-2.4/etc/init.d/netconfig @@ -41,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" 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 7a818dc5dd..a7cc322d87 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" |