summaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2015-04-09 10:32:08 +0000
committerJohn Crispin <john@openwrt.org>2015-04-09 10:32:08 +0000
commit8f92e94a74470b9bdc91328a58ecfbb242769284 (patch)
treed1b853b3ef5cab28e87d8aef60f58e05a48d3f04 /target
parent3c9dcadcf5522b34a89fa89e433ae7b6969113bc (diff)
downloadmaster-31e0f0ae-8f92e94a74470b9bdc91328a58ecfbb242769284.tar.gz
master-31e0f0ae-8f92e94a74470b9bdc91328a58ecfbb242769284.tar.bz2
master-31e0f0ae-8f92e94a74470b9bdc91328a58ecfbb242769284.zip
ar71xx: enable LEDs on Hornet-UB X2
None of the LEDs are enabled by default on the Hornet-UB X2 board (the 16/64MB version of the Hornet-UB), because it uses a different board-name ("hornet-ub-x2"); but hornet-ub and hornet-ub-x2 boards are equivalent WRT their LEDs. SIgned-off-by: Joshua Judson Rosen <jrosen@harvestai.com> SVN-Revision: 45328
Diffstat (limited to 'target')
-rw-r--r--target/linux/ar71xx/base-files/etc/diag.sh3
-rw-r--r--target/linux/ar71xx/base-files/etc/uci-defaults/01_leds3
2 files changed, 4 insertions, 2 deletions
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index 14ff625d61..52a73ee738 100644
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -95,7 +95,8 @@ get_status_led() {
hiwifi-hc6361)
status_led="hiwifi:blue:system"
;;
- hornet-ub)
+ hornet-ub | \
+ hornet-ub-x2)
status_led="alfa:blue:wps"
;;
ja76pf | \
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
index e18c2bc78b..787523a3d6 100644
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
@@ -164,7 +164,8 @@ hiwifi-hc6361)
ucidef_set_led_wlan "wlan" "WLAN" "hiwifi:blue:wlan-2p4" "phy0tpt"
;;
-hornet-ub)
+hornet-ub | \
+hornet-ub-x2)
ucidef_set_led_netdev "lan" "LAN" "alfa:blue:lan" "eth0"
ucidef_set_led_netdev "wan" "WAN" "alfa:blue:wan" "eth1"
ucidef_set_led_wlan "wlan" "WLAN" "alfa:blue:wlan" "phy0tpt"