From: Matthias Schiffer Date: Sun, 25 Sep 2016 21:06:48 +0000 (+0200) Subject: ramips: move /lib/ramips.sh include in /etc/init.d/bootcount into start() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=175fbe4d4ec4978ff1341f24ce3811d673c91a85;p=openwrt%2Fstaging%2Fnoltari.git 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 --- 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