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 /target/linux | |
parent | b3dd642584db0570b4488db282415c3c74bdc26e (diff) | |
download | mtk-20170518-175fbe4d4ec4978ff1341f24ce3811d673c91a85.zip mtk-20170518-175fbe4d4ec4978ff1341f24ce3811d673c91a85.tar.gz mtk-20170518-175fbe4d4ec4978ff1341f24ce3811d673c91a85.tar.bz2 |
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/linux')
-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 b93e3c9..a9fdd66 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 |