ramips: add support for Linksys EA7500 v2
[openwrt/openwrt.git] / target / linux / ramips / mt7621 / base-files / etc / init.d / bootcount
index b4d72abafc60ebf80b930536da95dea6aebc9348..e92912bbcc19e599a1555cdbd857cf29e992323f 100755 (executable)
@@ -8,6 +8,9 @@ boot() {
                [ -n "$(fw_printenv bootcount bootchanged 2>/dev/null)" ] &&\
                        echo -e "bootcount\nbootchanged\n" | /usr/sbin/fw_setenv -s -
                ;;
+       linksys,ea7500-v2)
+               mtd resetbc s_env || true
+               ;;
        samknows,whitebox-v8)
                fw_setenv bootcount 0
                ;;