mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-01 16:58:22 +00:00
hacks for supporting the toshiba wrc-1000
SVN-Revision: 5192
This commit is contained in:
parent
adcdb3046b
commit
e2434a5515
@ -41,6 +41,11 @@ start() {
|
|||||||
c["wan_ifname"]=""
|
c["wan_ifname"]=""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (nvram["boardtype"] == "bcm94710r4") {
|
||||||
|
# Toshiba WRC-1000
|
||||||
|
c["lan_ifname"] = "eth0"
|
||||||
|
c["wan_ifname"] = "eth1"
|
||||||
|
}
|
||||||
if (nvram["boardtype"] == "wgt634u") {
|
if (nvram["boardtype"] == "wgt634u") {
|
||||||
c["vlan0ports"] = "0 1 2 3 5*"
|
c["vlan0ports"] = "0 1 2 3 5*"
|
||||||
c["vlan1ports"] = "4 5"
|
c["vlan1ports"] = "4 5"
|
||||||
|
@ -2,11 +2,12 @@
|
|||||||
# Copyright (C) 2006 OpenWrt.org
|
# Copyright (C) 2006 OpenWrt.org
|
||||||
|
|
||||||
START=05
|
START=05
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
[ -e /etc/config/network ] && exit 0
|
[ -e /etc/config/network ] && exit 0
|
||||||
|
|
||||||
mkdir -p /etc/config
|
mkdir -p /etc/config
|
||||||
|
|
||||||
(
|
(
|
||||||
if grep -E 'mtd0: 000(6|a)0000' /proc/mtd 2>&- >&-; then
|
if grep -E 'mtd0: 000(6|a)0000' /proc/mtd 2>&- >&-; then
|
||||||
# WGT634u
|
# WGT634u
|
||||||
@ -40,6 +41,11 @@ start() {
|
|||||||
c["wan_ifname"]=""
|
c["wan_ifname"]=""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (nvram["boardtype"] == "bcm94710r4") {
|
||||||
|
# Toshiba WRC-1000
|
||||||
|
c["lan_ifname"] = "eth0"
|
||||||
|
c["wan_ifname"] = "eth1"
|
||||||
|
}
|
||||||
if (nvram["boardtype"] == "wgt634u") {
|
if (nvram["boardtype"] == "wgt634u") {
|
||||||
c["vlan0ports"] = "0 1 2 3 5*"
|
c["vlan0ports"] = "0 1 2 3 5*"
|
||||||
c["vlan1ports"] = "4 5"
|
c["vlan1ports"] = "4 5"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user