From 75ed56a08a4ce978323259a59a8f45ceed511584 Mon Sep 17 00:00:00 2001 From: Mathias Kresin Date: Fri, 2 Mar 2018 19:28:50 +0100 Subject: ath79: add AVM FRITZ!WLAN Repeater 300E No known issues, everything works fine. Signed-off-by: Mathias Kresin --- target/linux/ath79/base-files/etc/board.d/02_network | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'target/linux/ath79/base-files/etc/board.d/02_network') 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 941d2ab511..19361f161e 100755 --- a/target/linux/ath79/base-files/etc/board.d/02_network +++ b/target/linux/ath79/base-files/etc/board.d/02_network @@ -8,6 +8,7 @@ ath79_setup_interfaces() local board="$1" case "$board" in + "avm,fritz300e"|\ "ubnt,unifi") ucidef_set_interface_lan "eth0" ;; @@ -36,9 +37,23 @@ ath79_setup_interfaces() esac } +ath79_setup_macs() +{ + local board="$1" + + case "$board" in + avm,fritz300e) + lan_mac=$(fritz_tffs -n maca -i $(find_mtd_part "tffs (1)")) + ;; + esac + + [ -n "$lan_mac" ] && ucidef_set_interface_macaddr "lan" $lan_mac +} + board_config_update board=$(board_name) ath79_setup_interfaces $board +ath79_setup_macs $board board_config_flush exit 0 -- cgit v1.2.3