diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2016-09-25 23:06:48 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2016-09-25 23:26:42 +0200 |
commit | 175fbe4d4ec4978ff1341f24ce3811d673c91a85 (patch) | |
tree | becde81c790732c133f7c329b510bc6ea5cd8a28 | |
parent | b3dd642584db0570b4488db282415c3c74bdc26e (diff) | |
download | upstream-175fbe4d4ec4978ff1341f24ce3811d673c91a85.tar.gz upstream-175fbe4d4ec4978ff1341f24ce3811d673c91a85.tar.bz2 upstream-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>
-rwxr-xr-x | target/linux/ramips/base-files/etc/init.d/bootcount | 3 |
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 |