ramips: add initial support for SamKnows SK-WB8
[lede-git/.git] / target / linux / ramips / base-files / etc / init.d / bootcount
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 (executable)
index 0000000..b93e3c9
--- /dev/null
@@ -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
+}