aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/base-files/etc
diff options
context:
space:
mode:
authorLucian Cristian <lucian.cristian@gmail.com>2018-06-23 10:52:10 +0300
committerMathias Kresin <dev@kresin.me>2018-06-28 20:31:03 +0200
commit25070f71062e57c08e27b921868178b09274602a (patch)
tree94cab3d667351f98f42291e9cb05b0759f32648c /target/linux/ath79/base-files/etc
parent7dd3d7e1d3845160c2ef51e6148b452e666bd6f5 (diff)
downloadupstream-25070f71062e57c08e27b921868178b09274602a.tar.gz
upstream-25070f71062e57c08e27b921868178b09274602a.tar.bz2
upstream-25070f71062e57c08e27b921868178b09274602a.zip
ath79: small wr1043nd-v4 fixes
- fix sysupgrade check - move usb to v4 dts because v5 doesn't have it - make wan mac address behave like ar71xx target - add orange wan led support, it can be userspace activated like: on: echo default-on > /sys/class/leds/tp-link\:orange\:wan/trigger off: echo none > /sys/class/leds/tp-link\:orange\:wan/trigger Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
Diffstat (limited to 'target/linux/ath79/base-files/etc')
-rwxr-xr-xtarget/linux/ath79/base-files/etc/board.d/02_network4
1 files changed, 4 insertions, 0 deletions
diff --git a/target/linux/ath79/base-files/etc/board.d/02_network b/target/linux/ath79/base-files/etc/board.d/02_network
index 3282d8ad90..d60406e163 100755
--- a/target/linux/ath79/base-files/etc/board.d/02_network
+++ b/target/linux/ath79/base-files/etc/board.d/02_network
@@ -120,6 +120,10 @@ ath79_setup_macs()
lan_mac=$(k2t_get_mac "lan_mac")
wan_mac=$(k2t_get_mac "wan_mac")
;;
+ "tplink,tl-wr1043nd-v4")
+ base_mac=$(mtd_get_mac_binary product-info 8)
+ wan_mac=$(macaddr_add "$base_mac" 1)
+ ;;
esac
[ -n "$lan_mac" ] && ucidef_set_interface_macaddr "lan" $lan_mac