aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2015-04-09 10:32:08 +0000
committerJohn Crispin <blogic@openwrt.org>2015-04-09 10:32:08 +0000
commitfb8ec603775cd2e077551dd1bc4dd65ed5878e4e (patch)
treecb2b5245e36cc44e67ddfbdee54bb7ad95ea4326
parent5531c0bb18ea943e41a53d74b7838e4991e94ddd (diff)
downloadmaster-187ad058-fb8ec603775cd2e077551dd1bc4dd65ed5878e4e.tar.gz
master-187ad058-fb8ec603775cd2e077551dd1bc4dd65ed5878e4e.tar.bz2
master-187ad058-fb8ec603775cd2e077551dd1bc4dd65ed5878e4e.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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45328 3c298f89-4303-0410-b956-a3cf2f4a3e73
-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"