aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files/etc
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ramips/base-files/etc')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/init.d/bootcount11
1 files changed, 5 insertions, 6 deletions
diff --git a/target/linux/ramips/base-files/etc/init.d/bootcount b/target/linux/ramips/base-files/etc/init.d/bootcount
index 60b93f72b3..807801a34f 100755
--- a/target/linux/ramips/base-files/etc/init.d/bootcount
+++ b/target/linux/ramips/base-files/etc/init.d/bootcount
@@ -2,11 +2,10 @@
START=99
-start() {
- . /lib/functions.sh
-
- local board=$(board_name)
- if [ $board = "samknows,whitebox-v8" ]; then
+boot() {
+ case $(board_name) in
+ samknows,whitebox-v8)
fw_setenv bootcount 0
- fi
+ ;;
+ esac
}