summaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorChristian Marangi <ansuelsmth@gmail.com>2024-04-29 21:54:39 +0200
committerChristian Marangi <ansuelsmth@gmail.com>2024-04-29 21:54:39 +0200
commit284735246c12d7ef2d972847fc177b4861b94408 (patch)
tree86ffa98e75c434db5e281a7602fa3c4ad8fc598d /target/linux
parent5c833329cee88cfe60c8da0220e89484cb675802 (diff)
downloadopenwrt-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>
Diffstat (limited to 'target/linux')
-rwxr-xr-xtarget/linux/qualcommax/ipq60xx/base-files/etc/init.d/bootcount10
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
}