aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ipq806x/base-files/etc/init.d/bootcount
diff options
context:
space:
mode:
authorChuanhong Guo <gch981213@gmail.com>2019-08-10 19:35:56 +0800
committerChuanhong Guo <gch981213@gmail.com>2019-08-17 23:52:34 +0800
commit92e60260d53bc164b99e4fa5aec32c0d29d6ec26 (patch)
tree283d5b940a6e3e15099ea33ef0bc84d84e5b3325 /target/linux/ipq806x/base-files/etc/init.d/bootcount
parentced2b7bb988426aaece07a78c17d5a7c268e54c4 (diff)
downloadupstream-92e60260d53bc164b99e4fa5aec32c0d29d6ec26.tar.gz
upstream-92e60260d53bc164b99e4fa5aec32c0d29d6ec26.tar.bz2
upstream-92e60260d53bc164b99e4fa5aec32c0d29d6ec26.zip
treewide: sync bootcount scripts across targets
This commit made the following changes to sync all bootcount scripts: 1. use boot() instead of start() This script only needs to be executed once when boot is complete. use boot() to make this explicit. 2. drop sourcing of /lib/functions.sh This is aready done in /etc/rc.common. 3. ramips: replace board name checking with a case Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
Diffstat (limited to 'target/linux/ipq806x/base-files/etc/init.d/bootcount')
-rwxr-xr-xtarget/linux/ipq806x/base-files/etc/init.d/bootcount4
1 files changed, 1 insertions, 3 deletions
diff --git a/target/linux/ipq806x/base-files/etc/init.d/bootcount b/target/linux/ipq806x/base-files/etc/init.d/bootcount
index 6a5a6d52ad..d0bf708e66 100755
--- a/target/linux/ipq806x/base-files/etc/init.d/bootcount
+++ b/target/linux/ipq806x/base-files/etc/init.d/bootcount
@@ -2,9 +2,7 @@
START=99
-start() {
- . /lib/functions.sh
-
+boot() {
case $(board_name) in
linksys,ea8500)
mtd resetbc s_env || true