projects
/
openwrt
/
staging
/
chunkeey.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mtd: base-files: Unify dual-firmware devices (Linksys)
[openwrt/staging/chunkeey.git]
/
target
/
linux
/
ipq806x
/
base-files
/
etc
/
init.d
/
bootcount
diff --git a/target/linux/ipq806x/base-files/etc/init.d/bootcount
b/target/linux/ipq806x/base-files/etc/init.d/bootcount
new file mode 100755
(executable)
index 0000000..
6a5a6d5
--- /dev/null
+++ b/
target/linux/ipq806x/base-files/etc/init.d/bootcount
@@ -0,0
+1,13
@@
+#!/bin/sh /etc/rc.common
+
+START=99
+
+start() {
+ . /lib/functions.sh
+
+ case $(board_name) in
+ linksys,ea8500)
+ mtd resetbc s_env || true
+ ;;
+ esac
+}