aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files/etc/board.d/02_network
diff options
context:
space:
mode:
authorINAGAKI Hiroshi <musashino.open@gmail.com>2018-03-23 14:59:39 +0900
committerMathias Kresin <dev@kresin.me>2018-03-23 20:31:49 +0100
commite3bf92edf5564cf72de8234b32364f0d4919524f (patch)
treea07c6875e25d2e8abe6e96576e06ee0cc9ea088e /target/linux/ramips/base-files/etc/board.d/02_network
parent7004f681cd55e3ef38f2c705bd842c627ba45ce7 (diff)
downloadupstream-e3bf92edf5564cf72de8234b32364f0d4919524f.tar.gz
upstream-e3bf92edf5564cf72de8234b32364f0d4919524f.tar.bz2
upstream-e3bf92edf5564cf72de8234b32364f0d4919524f.zip
ramips: fix switch and MAC address for WHR-G300N
WHR-G300N has 5 ethernet ports (lan: 4, wan: 1), but there was no correct configuration in 02_network script and 6 ports was configured on the switch. Also, since the MAC address was not acquired from factory partition, incorrect values was set to LAN and WAN interfaces. This commit fixes these issues. Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Diffstat (limited to 'target/linux/ramips/base-files/etc/board.d/02_network')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/02_network4
1 files changed, 3 insertions, 1 deletions
diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network
index 03f718ee30..4441b2293e 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -110,6 +110,7 @@ ramips_setup_interfaces()
u7621-06-256M-16M|\
vr500|\
wf-2881|\
+ whr-g300n|\
witi|\
wl-wn575a3|\
wndr3700v5|\
@@ -440,7 +441,8 @@ ramips_setup_macs()
e1700)
wan_mac=$(mtd_get_mac_ascii config WAN_MAC_ADDR)
;;
- gl-mt300n-v2)
+ gl-mt300n-v2|\
+ whr-g300n)
wan_mac=$(mtd_get_mac_binary factory 4)
;;
hc5*61|\