summaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files/etc/init.d
diff options
context:
space:
mode:
authorAndrew Yong <me@ndoo.sg>2016-05-11 00:17:54 +0800
committerJohn Crispin <john@phrozen.org>2016-05-12 03:29:35 +0200
commit374cae9e6fcaf4cf4de4f2095f3fec558da51df6 (patch)
treec6dfa75aeffb0061ce38702779a4e8fb07f6d466 /target/linux/ramips/base-files/etc/init.d
parent9195d8da355d0d141ac02c9a5269452dc64ffd2d (diff)
downloadmaster-31e0f0ae-374cae9e6fcaf4cf4de4f2095f3fec558da51df6.tar.gz
master-31e0f0ae-374cae9e6fcaf4cf4de4f2095f3fec558da51df6.tar.bz2
master-31e0f0ae-374cae9e6fcaf4cf4de4f2095f3fec558da51df6.zip
ramips: add initial support for SamKnows SK-WB8
Signed-off-by: Andrew Yong <me@ndoo.sg>
Diffstat (limited to 'target/linux/ramips/base-files/etc/init.d')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/init.d/bootcount11
1 files changed, 11 insertions, 0 deletions
diff --git a/target/linux/ramips/base-files/etc/init.d/bootcount b/target/linux/ramips/base-files/etc/init.d/bootcount
new file mode 100755
index 0000000000..b93e3c96f1
--- /dev/null
+++ b/target/linux/ramips/base-files/etc/init.d/bootcount
@@ -0,0 +1,11 @@
+#!/bin/sh /etc/rc.common
+. /lib/ramips.sh
+
+START=99
+
+start() {
+ local board=$(ramips_board_name)
+ if [ $board = "sk-wb8" ]; then
+ fw_setenv bootcount 0
+ fi
+}