ar71xx: add support for gl-ar300m
[oweals/openwrt.git] / target / linux / ar71xx / base-files / etc / diag.sh
index 08e5fd0fc17004221f684f3c13b99aa656b7b060..71ebf89cd92496469380e3cbf82cbe2c72801b3a 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"
                ;;
@@ -448,6 +451,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