aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ipq807x/base-files/etc/init.d
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ipq807x/base-files/etc/init.d')
-rwxr-xr-xtarget/linux/ipq807x/base-files/etc/init.d/bootcount13
1 files changed, 13 insertions, 0 deletions
diff --git a/target/linux/ipq807x/base-files/etc/init.d/bootcount b/target/linux/ipq807x/base-files/etc/init.d/bootcount
new file mode 100755
index 0000000000..6917446a9b
--- /dev/null
+++ b/target/linux/ipq807x/base-files/etc/init.d/bootcount
@@ -0,0 +1,13 @@
+#!/bin/sh /etc/rc.common
+
+START=99
+
+boot() {
+ case $(board_name) in
+ edgecore,eap102)
+ fw_setenv upgrade_available 0
+ # Unset changed flag after sysupgrade complete
+ fw_setenv changed
+ ;;
+ esac
+}