ar71xx: add support for Zbtlink ZBT-WE1526
[openwrt/openwrt.git] / target / linux / ar71xx / base-files / etc / diag.sh
index 08e5fd0fc17004221f684f3c13b99aa656b7b060..69ef609332c488b70f6944b95e4dc65160a92d99 100644 (file)
@@ -158,6 +158,9 @@ get_status_led() {
        ja76pf2)
                status_led="jjplus:green:led1"
                ;;
+       jwap230)
+               status_led="jwap230:green:led1"
+               ;;
        ls-sr71)
                status_led="ubnt:green:d22"
                ;;
@@ -423,6 +426,9 @@ get_status_led() {
        wrt160nl)
                status_led="wrt160nl:blue:wps"
                ;;
+       zbt-we1526)
+               status_led="zbt-we1526:green:status"
+               ;;
        zcn-1523h-2 | zcn-1523h-5)
                status_led="zcn-1523h:amber:init"
                ;;
@@ -448,6 +454,9 @@ set_state() {
        done)
                status_led_on
                case $(ar71xx_board_name) in
+               gl-ar300m)
+                       fw_printenv lc >/dev/null 2>&1 && fw_setenv "bootcount" 0
+                       ;;
                qihoo-c301)
                        local n=$(fw_printenv activeregion | cut -d = -f 2)
                        fw_setenv "image${n}trynum" 0