summaryrefslogtreecommitdiff
path: root/target/linux/ar71xx/base-files
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ar71xx/base-files')
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/diag.sh3
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/uci-defaults/leds7
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/ar71xx.sh3
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/upgrade/platform.sh1
4 files changed, 14 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index 3af66b7..c0aadbc 100755
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -60,6 +60,9 @@ get_status_led() {
eap7660d)
status_led="eap7660d:green:ds4"
;;
+ hornet-ub)
+ status_led="alfa:blue:wps"
+ ;;
ja76pf)
status_led="ja76pf:green:led1"
;;
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/leds b/target/linux/ar71xx/base-files/etc/uci-defaults/leds
index a0779ef..88538f8 100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/leds
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/leds
@@ -91,6 +91,13 @@ dir-825-b1)
set_led_usbdev "usb" "USB" "dir825b1:blue:usb" "1-1"
;;
+hornet-ub)
+ set_led_netdev "lan" "LAN" "alfa:blue:lan" "eth0"
+ set_led_netdev "wan" "WAN" "alfa:blue:wan" "eth1"
+ set_led_wlan "wlan" "WLAN" "alfa:blue:wlan" "phy0tpt"
+ set_led_usbdev "usb" "USB" "alfa:blue:usb" "1-1"
+ ;;
+
mzk-w04u)
set_led_usbdev "usb" "USB" "planex:green:usb" "1-1"
;;
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index c8a202e..83cad36 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -163,6 +163,9 @@ ar71xx_board_detect() {
*JWAP003)
name="jwap003"
;;
+ *"Hornet-UB")
+ name="hornet-ub"
+ ;;
*LS-SR71)
name="ls-sr71"
;;
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
index d2780a5..2800b05 100755
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -81,6 +81,7 @@ platform_check_image() {
ap121-mini | \
ap96 | \
db120 | \
+ hornet-ub | \
zcn-1523h-2 | \
zcn-1523h-5)
[ "$magic_long" != "68737173" -a "$magic_long" != "19852003" ] && {