From 99fd9a704184d5f1b9ef279115aa529d3ef63fdb Mon Sep 17 00:00:00 2001 From: John Crispin Date: Sat, 21 Nov 2015 21:24:18 +0000 Subject: ar71xx: add support for the devolo dLAN Hotspot MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Günther Kelleter SVN-Revision: 47554 --- target/linux/ar71xx/base-files/etc/board.d/01_leds | 4 ++++ target/linux/ar71xx/base-files/etc/board.d/02_network | 1 + target/linux/ar71xx/base-files/etc/diag.sh | 3 +++ target/linux/ar71xx/base-files/lib/ar71xx.sh | 3 +++ target/linux/ar71xx/base-files/lib/upgrade/platform.sh | 1 + 5 files changed, 12 insertions(+) (limited to 'target/linux/ar71xx/base-files') diff --git a/target/linux/ar71xx/base-files/etc/board.d/01_leds b/target/linux/ar71xx/base-files/etc/board.d/01_leds index 952e7b88d5..e5683c0377 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/01_leds +++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds @@ -200,6 +200,10 @@ dir-825-c1) ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "d-link:blue:wlan2g" "phy0tpt" ;; +dlan-hotspot) + ucidef_set_led_wlan "wlan" "WLAN" "devolo:green:wifi" "phy0tpt" + ;; + dlan-pro-500-wp) ucidef_set_led_default "power" "System Power" "devolo:green:status" "1" ucidef_set_led_netdev "lan" "Ethernet Activity" "devolo:green:eth" "br-lan" diff --git a/target/linux/ar71xx/base-files/etc/board.d/02_network b/target/linux/ar71xx/base-files/etc/board.d/02_network index fffe06b7a0..64f2054b62 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/02_network +++ b/target/linux/ar71xx/base-files/etc/board.d/02_network @@ -329,6 +329,7 @@ esr900) [ -n "$mac" ] && ucidef_set_interface_macaddr "wan" "$mac" ;; +dlan-hotspot |\ dlan-pro-500-wp) ucidef_set_interface_lan "eth0 eth1" ;; diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh index 8eb3512054..a8e1721b7c 100644 --- a/target/linux/ar71xx/base-files/etc/diag.sh +++ b/target/linux/ar71xx/base-files/etc/diag.sh @@ -86,6 +86,9 @@ get_status_led() { dir-835-a1) status_led="d-link:amber:power" ;; + dlan-hotspot) + status_led="devolo:green:wifi" + ;; dlan-pro-500-wp) status_led="devolo:green:wlan-2g" ;; diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index af2df8e068..5b3e76f993 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -454,6 +454,9 @@ ar71xx_board_detect() { *"DIR-835 rev. A1") name="dir-835-a1" ;; + *"dLAN Hotspot") + name="dlan-hotspot" + ;; *"dLAN pro 500 Wireless+") name="dlan-pro-500-wp" ;; diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index b97c076519..5b15405263 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -211,6 +211,7 @@ platform_check_image() { dir-615-i1 | \ dir-825-c1 | \ dir-835-a1 | \ + dlan-hotspot | \ dlan-pro-500-wp | \ dlan-pro-1200-ac | \ dragino2 | \ -- cgit v1.2.3