ar71xx: add support for gl-ar300m
[openwrt/openwrt.git] / target / linux / ar71xx / base-files / etc / diag.sh
index f517f9bad380fe42d24196837a954d00430f86e9..71ebf89cd92496469380e3cbf82cbe2c72801b3a 100644 (file)
@@ -451,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