diff options
author | Christian Marangi <ansuelsmth@gmail.com> | 2024-04-29 21:54:39 +0200 |
---|---|---|
committer | Christian Marangi <ansuelsmth@gmail.com> | 2024-04-29 21:54:39 +0200 |
commit | 284735246c12d7ef2d972847fc177b4861b94408 (patch) | |
tree | 86ffa98e75c434db5e281a7602fa3c4ad8fc598d | |
parent | 5c833329cee88cfe60c8da0220e89484cb675802 (diff) | |
download | openwrt-284735246c12d7ef2d972847fc177b4861b94408.tar.gz openwrt-284735246c12d7ef2d972847fc177b4861b94408.tar.bz2 openwrt-284735246c12d7ef2d972847fc177b4861b94408.zip |
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@gmail.com>
-rwxr-xr-x | target/linux/qualcommax/ipq60xx/base-files/etc/init.d/bootcount | 10 |
1 files 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 } |