From 175fbe4d4ec4978ff1341f24ce3811d673c91a85 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 25 Sep 2016 23:06:48 +0200 Subject: [PATCH] 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 --- target/linux/ramips/base-files/etc/init.d/bootcount | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.30.2