ar71xx: add support for gl-ar300m
[oweals/openwrt.git] / target / linux / ar71xx / base-files / etc / diag.sh
index 520fef809755febe94d31d7f45ca5887a098d9c9..71ebf89cd92496469380e3cbf82cbe2c72801b3a 100644 (file)
@@ -113,6 +113,9 @@ get_status_led() {
        dr344)
                status_led="dr344:green:status"
                ;;
+       dr531)
+               status_led="dr531:green:sig4"
+               ;;
        dragino2)
                status_led="dragino2:red:system"
                ;;
@@ -155,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"
                ;;
@@ -445,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