[openwrt/openwrt] qualcommax: ipq60xx: mute warning on bootcount enable compile

LEDE Commits lede-commits at lists.infradead.org
Mon Apr 29 12:57:52 PDT 2024


ansuel pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/284735246c12d7ef2d972847fc177b4861b94408

commit 284735246c12d7ef2d972847fc177b4861b94408
Author: Christian Marangi <ansuelsmth at gmail.com>
AuthorDate: Mon Apr 29 21:54:39 2024 +0200

    qualcommax: ipq60xx: mute warning on bootcount enable compile
    
    ipq60xx bootcount script include /lib/functions that produce warning
    when the script is enabled on image compilation. This script is already
    included by /etc/rc.common hence it's not needed.
    
    While at it also fix the format of the switch case.
    
    Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
---
 .../linux/qualcommax/ipq60xx/base-files/etc/init.d/bootcount   | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/target/linux/qualcommax/ipq60xx/base-files/etc/init.d/bootcount b/target/linux/qualcommax/ipq60xx/base-files/etc/init.d/bootcount
index 6347976372..b34fbd82d7 100755
--- a/target/linux/qualcommax/ipq60xx/base-files/etc/init.d/bootcount
+++ b/target/linux/qualcommax/ipq60xx/base-files/etc/init.d/bootcount
@@ -2,13 +2,11 @@
 
 START=99
 
-. /lib/functions.sh
-
 boot() {
 	case $(board_name) in
-		yuncore,fap650)
-			fw_setenv owrt_bootcount 0
-		;;
-		esac
+	yuncore,fap650)
+		fw_setenv owrt_bootcount 0
+	;;
+	esac
 }
 




More information about the lede-commits mailing list