[source] ramips: move /lib/ramips.sh include in /etc/init.d/bootcount into start()
LEDE Commits
lede-commits at lists.infradead.org
Sun Sep 25 14:27:35 PDT 2016
neoraider pushed a commit to source.git, branch master:
https://git.lede-project.org/175fbe4d4ec4978ff1341f24ce3811d673c91a85
commit 175fbe4d4ec4978ff1341f24ce3811d673c91a85
Author: Matthias Schiffer <mschiffer at universe-factory.net>
AuthorDate: Sun Sep 25 23:06:48 2016 +0200
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 at universe-factory.net>
---
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 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
More information about the lede-commits
mailing list