mediatek: add Linksys E8450 support
[openwrt/openwrt.git] / target / linux / mediatek / mt7622 / base-files / etc / init.d / bootcount
diff --git a/target/linux/mediatek/mt7622/base-files/etc/init.d/bootcount b/target/linux/mediatek/mt7622/base-files/etc/init.d/bootcount
new file mode 100755 (executable)
index 0000000..bc4eeb6
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/sh /etc/rc.common
+
+START=99
+
+boot() {
+       case $(board_name) in
+       linksys,e8450)
+               mtd erase senv || true
+               ;;
+       esac
+}