From 284735246c12d7ef2d972847fc177b4861b94408 Mon Sep 17 00:00:00 2001 From: Christian Marangi Date: Mon, 29 Apr 2024 21:54:39 +0200 Subject: [PATCH] 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 --- .../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 6347976372b..b34fbd82d7b 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 }