ipq807x: add support for Linksys MX4200 V1 and V2
[openwrt/openwrt.git] / target / linux / qualcommax / ipq807x / base-files / etc / init.d / bootcount
index 6917446a9bb5df326ce2cc0ce925857451f001f4..f5f6c909e9b42427a971e44c821131f61b464740 100755 (executable)
@@ -4,10 +4,15 @@ START=99
 
 boot() {
        case $(board_name) in
-       edgecore,eap102)
+       edgecore,eap102|\
+       yuncore,ax880)
                fw_setenv upgrade_available 0
                # Unset changed flag after sysupgrade complete
                fw_setenv changed
        ;;
+       linksys,mx4200v1|\
+       linksys,mx4200v2)
+               mtd resetbc s_env || true
+       ;;
        esac
 }