ソースを参照

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 <[email protected]>
Matthias Schiffer 9 年 前
コミット
175fbe4d4e
1 ファイル変更2 行追加1 行削除
  1. 2 1
      target/linux/ramips/base-files/etc/init.d/bootcount

+ 2 - 1
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