summaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2016-09-25 23:06:48 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2016-09-25 23:26:42 +0200
commit175fbe4d4ec4978ff1341f24ce3811d673c91a85 (patch)
treebecde81c790732c133f7c329b510bc6ea5cd8a28 /target
parentb3dd642584db0570b4488db282415c3c74bdc26e (diff)
downloadmaster-31e0f0ae-175fbe4d4ec4978ff1341f24ce3811d673c91a85.tar.gz
master-31e0f0ae-175fbe4d4ec4978ff1341f24ce3811d673c91a85.tar.bz2
master-31e0f0ae-175fbe4d4ec4978ff1341f24ce3811d673c91a85.zip
ramips: move /lib/ramips.sh include in /etc/init.d/bootcount into start()
Enabling the init script offline will print an error otherwise. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Diffstat (limited to 'target')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/init.d/bootcount3
1 files changed, 2 insertions, 1 deletions
diff --git a/target/linux/ramips/base-files/etc/init.d/bootcount b/target/linux/ramips/base-files/etc/init.d/bootcount
index b93e3c96f1..a9fdd666c3 100755
--- a/target/linux/ramips/base-files/etc/init.d/bootcount
+++ b/target/linux/ramips/base-files/etc/init.d/bootcount
@@ -1,9 +1,10 @@
#!/bin/sh /etc/rc.common
-. /lib/ramips.sh
START=99
start() {
+ . /lib/ramips.sh
+
local board=$(ramips_board_name)
if [ $board = "sk-wb8" ]; then
fw_setenv bootcount 0