ramips: add support for ZyXEL LTE3301-Plus
[openwrt/openwrt.git] / target / linux / ramips / mt7621 / base-files / etc / init.d / bootcount
index 8382bdf0c52b3f5fbb52d9db80a0a1f64717cb36..4ebe50fdfe7caded3f283340cc51e877b8c76cbc 100755 (executable)
@@ -20,6 +20,11 @@ boot() {
        samknows,whitebox-v8)
                fw_setenv bootcount 0
                ;;
+       zyxel,lte3301-plus)
+               [ $(printf %d $(fw_printenv -n DebugFlag)) -gt 0 ] || fw_setenv DebugFlag 1
+               [ $(printf %d $(fw_printenv -n Image1Stable)) -gt 0 ] || fw_setenv Image1Stable 1
+               [ $(printf %d $(fw_printenv -n Image1Try)) -gt 0 ] && fw_setenv Image1Try 0
+               ;;
        zyxel,nr7101)
                [ $(printf %d $(fw_printenv -n DebugFlag)) -gt 0 ] || fw_setenv DebugFlag 0x1
                [ $(printf %d $(fw_printenv -n Image1Stable)) -gt 0 ] || fw_setenv Image1Stable 1