Mercurial > hg > freeDiameter
annotate contrib/OpenWRT/others/D-Link_DIR-330_netconfig.patch @ 488:b81732a92223
Patch to get a working WAN interface on D-Link DIR-330 routeur with OpenWRT. Wireless still not good.
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Thu, 12 Aug 2010 14:26:22 +0900 |
parents | |
children |
rev | line source |
---|---|
488
b81732a92223
Patch to get a working WAN interface on D-Link DIR-330 routeur with OpenWRT. Wireless still not good.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
1 diff --git a/target/linux/brcm47xx/base-files/etc/init.d/netconfig b/target/linux/brcm47xx/base-files/etc/init.d/netconfig |
b81732a92223
Patch to get a working WAN interface on D-Link DIR-330 routeur with OpenWRT. Wireless still not good.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
2 index d7839b6..6446483 100755 |
b81732a92223
Patch to get a working WAN interface on D-Link DIR-330 routeur with OpenWRT. Wireless still not good.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
3 --- a/target/linux/brcm47xx/base-files/etc/init.d/netconfig |
b81732a92223
Patch to get a working WAN interface on D-Link DIR-330 routeur with OpenWRT. Wireless still not good.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
4 +++ b/target/linux/brcm47xx/base-files/etc/init.d/netconfig |
b81732a92223
Patch to get a working WAN interface on D-Link DIR-330 routeur with OpenWRT. Wireless still not good.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
5 @@ -150,6 +150,30 @@ start() { |
b81732a92223
Patch to get a working WAN interface on D-Link DIR-330 routeur with OpenWRT. Wireless still not good.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
6 } |
b81732a92223
Patch to get a working WAN interface on D-Link DIR-330 routeur with OpenWRT. Wireless still not good.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
7 } |
b81732a92223
Patch to get a working WAN interface on D-Link DIR-330 routeur with OpenWRT. Wireless still not good.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
8 } |
b81732a92223
Patch to get a working WAN interface on D-Link DIR-330 routeur with OpenWRT. Wireless still not good.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
9 + if (model == "D-Link DIR-330") { # boardtype is 0x0472, so we need to reset the parameters |
b81732a92223
Patch to get a working WAN interface on D-Link DIR-330 routeur with OpenWRT. Wireless still not good.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
10 + # The switch is on eth1, this script defaults to switch on eth0, so we write the values directly instead. |
b81732a92223
Patch to get a working WAN interface on D-Link DIR-330 routeur with OpenWRT. Wireless still not good.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
11 + print "#### DIR-330: eth1 must be up for configuring the switch " |
b81732a92223
Patch to get a working WAN interface on D-Link DIR-330 routeur with OpenWRT. Wireless still not good.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
12 + print "config interface switchport" |
b81732a92223
Patch to get a working WAN interface on D-Link DIR-330 routeur with OpenWRT. Wireless still not good.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
13 + print " option ifname \"eth1\"" |
b81732a92223
Patch to get a working WAN interface on D-Link DIR-330 routeur with OpenWRT. Wireless still not good.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
14 + print " option proto none" |
b81732a92223
Patch to get a working WAN interface on D-Link DIR-330 routeur with OpenWRT. Wireless still not good.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
15 + print "" |
b81732a92223
Patch to get a working WAN interface on D-Link DIR-330 routeur with OpenWRT. Wireless still not good.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
16 + print "config switch eth1" |
b81732a92223
Patch to get a working WAN interface on D-Link DIR-330 routeur with OpenWRT. Wireless still not good.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
17 + print " option enable 1" |
b81732a92223
Patch to get a working WAN interface on D-Link DIR-330 routeur with OpenWRT. Wireless still not good.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
18 + print "" |
b81732a92223
Patch to get a working WAN interface on D-Link DIR-330 routeur with OpenWRT. Wireless still not good.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
19 + print "config switch_vlan eth1_0" |
b81732a92223
Patch to get a working WAN interface on D-Link DIR-330 routeur with OpenWRT. Wireless still not good.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
20 + print " option device \"eth1\"" |
b81732a92223
Patch to get a working WAN interface on D-Link DIR-330 routeur with OpenWRT. Wireless still not good.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
21 + print " option vlan 0" |
b81732a92223
Patch to get a working WAN interface on D-Link DIR-330 routeur with OpenWRT. Wireless still not good.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
22 + print " option ports \"0 1 2 3 5t\"" |
b81732a92223
Patch to get a working WAN interface on D-Link DIR-330 routeur with OpenWRT. Wireless still not good.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
23 + print "" |
b81732a92223
Patch to get a working WAN interface on D-Link DIR-330 routeur with OpenWRT. Wireless still not good.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
24 + print "config switch_vlan eth1_1" |
b81732a92223
Patch to get a working WAN interface on D-Link DIR-330 routeur with OpenWRT. Wireless still not good.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
25 + print " option device \"eth1\"" |
b81732a92223
Patch to get a working WAN interface on D-Link DIR-330 routeur with OpenWRT. Wireless still not good.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
26 + print " option vlan 1" |
b81732a92223
Patch to get a working WAN interface on D-Link DIR-330 routeur with OpenWRT. Wireless still not good.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
27 + print " option ports \"4 5t\"" |
b81732a92223
Patch to get a working WAN interface on D-Link DIR-330 routeur with OpenWRT. Wireless still not good.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
28 + print "" |
b81732a92223
Patch to get a working WAN interface on D-Link DIR-330 routeur with OpenWRT. Wireless still not good.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
29 + c["lan_ifname"] = "eth0.0" |
b81732a92223
Patch to get a working WAN interface on D-Link DIR-330 routeur with OpenWRT. Wireless still not good.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
30 + c["wan_ifname"] = "eth0.1" |
b81732a92223
Patch to get a working WAN interface on D-Link DIR-330 routeur with OpenWRT. Wireless still not good.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
31 + } |
b81732a92223
Patch to get a working WAN interface on D-Link DIR-330 routeur with OpenWRT. Wireless still not good.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
32 + |
b81732a92223
Patch to get a working WAN interface on D-Link DIR-330 routeur with OpenWRT. Wireless still not good.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
33 # Buffalo WBR-B11 and Buffalo WBR-G54 |
b81732a92223
Patch to get a working WAN interface on D-Link DIR-330 routeur with OpenWRT. Wireless still not good.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
34 if (nvram["boardtype"] == "bcm94710ap") { |
b81732a92223
Patch to get a working WAN interface on D-Link DIR-330 routeur with OpenWRT. Wireless still not good.
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
diff
changeset
|
35 c["vlan0ports"] = "0 1 2 3 4 5u" |