diff options
author | Andrew Yong <me@ndoo.sg> | 2016-05-11 00:17:54 +0800 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2016-05-12 03:29:35 +0200 |
commit | 374cae9e6fcaf4cf4de4f2095f3fec558da51df6 (patch) | |
tree | c6dfa75aeffb0061ce38702779a4e8fb07f6d466 /target/linux/ramips/base-files/etc/init.d | |
parent | 9195d8da355d0d141ac02c9a5269452dc64ffd2d (diff) | |
download | upstream-374cae9e6fcaf4cf4de4f2095f3fec558da51df6.tar.gz upstream-374cae9e6fcaf4cf4de4f2095f3fec558da51df6.tar.bz2 upstream-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-x | target/linux/ramips/base-files/etc/init.d/bootcount | 11 |
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 +} |