From 61e2edd44accc153685792f6bf1b05a0250d4257 Mon Sep 17 00:00:00 2001 From: Hu3rror <19755727+hu3rror@users.noreply.github.com> Date: Wed, 5 Jul 2023 17:50:58 +0800 Subject: [PATCH] luci-app-mosdns: fix an error reported when using imageBuilder --- luci-app-mosdns/Makefile | 1 + luci-app-mosdns/root/etc/init.d/mosdns | 2 ++ 2 files changed, 3 insertions(+) diff --git a/luci-app-mosdns/Makefile b/luci-app-mosdns/Makefile index f1d59cc..902763b 100644 --- a/luci-app-mosdns/Makefile +++ b/luci-app-mosdns/Makefile @@ -17,6 +17,7 @@ endef define Package/$(PKG_NAME)/postinst #!/bin/sh +[ ! -f /etc/openwrt_release ] && exit 0 [ -n "${IPKG_INSTROOT}" ] || { sysctl -p /etc/sysctl.d/20-mosdns-buffer-increase.conf exit 0 diff --git a/luci-app-mosdns/root/etc/init.d/mosdns b/luci-app-mosdns/root/etc/init.d/mosdns index 5c00c7b..2bece2a 100755 --- a/luci-app-mosdns/root/etc/init.d/mosdns +++ b/luci-app-mosdns/root/etc/init.d/mosdns @@ -20,6 +20,8 @@ # along with this program. If not, see . # +[ ! -f /etc/openwrt_release ] && exit 0 + START=99 USE_PROCD=1