qualcommax: ipq60xx: mute warning on bootcount enable compile
authorChristian Marangi <ansuelsmth@gmail.com>
Mon, 29 Apr 2024 19:54:39 +0000 (21:54 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Mon, 29 Apr 2024 19:54:39 +0000 (21:54 +0200)
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>
target/linux/qualcommax/ipq60xx/base-files/etc/init.d/bootcount

index 6347976372b14f0b182033baa199334342eb1418..b34fbd82d7b3becd2aece96406f18b5947c72e12 100755 (executable)
@@ -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
 }