ipq807x: add support for Linksys MX4200 V1 and V2
[openwrt/openwrt.git] / target / linux / qualcommax / ipq807x / base-files / etc / init.d / bootcount
1 #!/bin/sh /etc/rc.common
2
3 START=99
4
5 boot() {
6 case $(board_name) in
7 edgecore,eap102|\
8 yuncore,ax880)
9 fw_setenv upgrade_available 0
10 # Unset changed flag after sysupgrade complete
11 fw_setenv changed
12 ;;
13 linksys,mx4200v1|\
14 linksys,mx4200v2)
15 mtd resetbc s_env || true
16 ;;
17 esac
18 }