ipq806x: add support for Extreme Networks AP3935
[openwrt/openwrt.git] / target / linux / ipq806x / base-files / etc / init.d / bootcount
index 77965e647bb94cb6b1972c47d393ed2e17109435..ef3c6894e44adbaf293e42f8abf57693678a2013 100755 (executable)
@@ -2,11 +2,19 @@
 
 START=99
 
+. "$IPKG_INSTROOT/lib/upgrade/asrock.sh"
+
 boot() {
        case $(board_name) in
+       asrock,g10)
+               asrock_bootconfig_mangle "bootcheck" && reboot
+               ;;
        edgecore,ecw5410)
                fw_setenv bootcount 0
                ;;
+       extreme,ap3935)
+               fw_setenv WATCHDOG_COUNT 0x00000000
+               ;;
        linksys,ea7500-v1 |\
        linksys,ea8500)
                mtd resetbc s_env || true