From de6558ce9b016795c29d760aab26f6acf50c332a Mon Sep 17 00:00:00 2001 From: remittor Date: Sun, 17 Nov 2024 09:57:19 +0300 Subject: [PATCH] base: Fix for disable service nextdns --- hook_prepare_rootfs.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hook_prepare_rootfs.sh b/hook_prepare_rootfs.sh index 120442c..552fa2c 100755 --- a/hook_prepare_rootfs.sh +++ b/hook_prepare_rootfs.sh @@ -103,11 +103,14 @@ if [ -f "$DIS_SVC_FN" ]; then for svc in $DIS_SVC_LST; do [ -z "$svc" ] && continue svc_xx=$(find "$ROOTFSDIR/etc/rc.d" -maxdepth 1 -name ???$svc -printf 1 -quit) - if [ -n "$svc_xx" ]; then + if [ -n "$svc_xx" ]; then log_msg "Service '$svc' disabled." fi rm -f "$ROOTFSDIR"/etc/rc.d/S??$svc rm -f "$ROOTFSDIR"/etc/rc.d/K??$svc + if [ "$svc" = "nextdns" ]; then + sed -i 's/nextdns enable/nextdns disable/g' "$ROOTFSDIR/etc/uci-defaults/nextdns" + fi done fi