diff options
author | Mathias Kresin <dev@kresin.me> | 2018-03-02 19:28:50 +0100 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2018-05-17 07:40:19 +0200 |
commit | 75ed56a08a4ce978323259a59a8f45ceed511584 (patch) | |
tree | 7fca1a4625212688cf2aefc9679d1bf39f7a5489 /target/linux/ath79/base-files/etc/board.d | |
parent | bc04cf780e95aa292695f064dfaeea08df8c9b84 (diff) | |
download | upstream-75ed56a08a4ce978323259a59a8f45ceed511584.tar.gz upstream-75ed56a08a4ce978323259a59a8f45ceed511584.tar.bz2 upstream-75ed56a08a4ce978323259a59a8f45ceed511584.zip |
ath79: add AVM FRITZ!WLAN Repeater 300E
No known issues, everything works fine.
Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/ath79/base-files/etc/board.d')
-rwxr-xr-x | target/linux/ath79/base-files/etc/board.d/01_leds | 11 | ||||
-rwxr-xr-x | target/linux/ath79/base-files/etc/board.d/02_network | 15 |
2 files changed, 26 insertions, 0 deletions
diff --git a/target/linux/ath79/base-files/etc/board.d/01_leds b/target/linux/ath79/base-files/etc/board.d/01_leds index 9d42861939..70d27bc29b 100755 --- a/target/linux/ath79/base-files/etc/board.d/01_leds +++ b/target/linux/ath79/base-files/etc/board.d/01_leds @@ -5,8 +5,19 @@ board_config_update board=$(board_name) +boardname="${board##*,}" case "$board" in +"avm,fritz300e") + ucidef_set_led_netdev "lan" "LAN" "$boardname:green:lan" "eth0" + ucidef_set_led_wlan "wlan" "WLAN" "$boardname:green:wlan" "phy0tpt" + ucidef_set_rssimon "wlan0" "200000" "1" + ucidef_set_led_rssi "rssilow" "RSSILOW" "$boardname:green:rssi0" "wlan0" "1" "100" + ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "$boardname:green:rssi1" "wlan0" "20" "100" + ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "$boardname:green:rssi2" "wlan0" "40" "100" + ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "$boardname:green:rssi3" "wlan0" "60" "100" + ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "$boardname:green:rssi4" "wlan0" "80" "100" + ;; "glinet,ar150") ucidef_set_led_wlan "wlan" "WLAN" "gl-ar150:orange:wlan" "phy0tpt" ;; 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 |