aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files/etc
diff options
context:
space:
mode:
authorMathias Kresin <dev@kresin.me>2016-08-19 20:46:50 +0200
committerMathias Kresin <dev@kresin.me>2016-08-20 11:47:25 +0200
commitbcd2113a32d80c0dc2c4140f76e96b28c3f70a27 (patch)
treecf337fad1a46fb6c631cc706c1adc432777698e5 /target/linux/ramips/base-files/etc
parenta7c6cf5182a3b20afb1c98d0d79247d6a9bc104b (diff)
downloadupstream-bcd2113a32d80c0dc2c4140f76e96b28c3f70a27.tar.gz
upstream-bcd2113a32d80c0dc2c4140f76e96b28c3f70a27.tar.bz2
upstream-bcd2113a32d80c0dc2c4140f76e96b28c3f70a27.zip
ramips: TEW-691GR: fix switch and wireless
Due to the missing phy-mode setting, the switch wasn't initialised. The wireless requires an eeprom to work. Use the same mac addresses as the stock firmware. Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/ramips/base-files/etc')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/02_network3
1 files changed, 1 insertions, 2 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 73404d91b0..32bfa77f70 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -333,8 +333,7 @@ ramips_setup_macs()
wan_mac=$(mtd_get_mac_binary factory 57350)
;;
tew-691gr)
- lan_mac=$(cat /sys/class/net/eth0/address)
- wan_mac=$(macaddr_add "$lan_mac" 3)
+ wan_mac=$(macaddr_add "$(mtd_get_mac_binary factory 4)" 3)
;;
tew-692gr)
wan_mac=$(macaddr_add "$(mtd_get_mac_binary factory 4)" 1)