From: Christian Marangi Date: Mon, 29 Apr 2024 19:54:39 +0000 (+0200) Subject: qualcommax: ipq60xx: mute warning on bootcount enable compile X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=284735246c12d7ef2d972847fc177b4861b94408;p=openwrt%2Fstaging%2Fnbd.git 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 --- 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 }