From 37045562d9371680e5c4f1973b2c51d0fba5837b Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Wed, 16 Sep 2020 15:11:32 +0200 Subject: [PATCH] ddns-scripts: cleanup prerm script Signed-off-by: Florian Eckert --- net/ddns-scripts/Makefile | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/net/ddns-scripts/Makefile b/net/ddns-scripts/Makefile index f0850fe27..13bf82d29 100755 --- a/net/ddns-scripts/Makefile +++ b/net/ddns-scripts/Makefile @@ -215,15 +215,12 @@ define Package/ddns-scripts/postinst endef define Package/ddns-scripts/prerm - #!/bin/sh - # if run within buildroot exit - [ -n "$${IPKG_INSTROOT}" ] && exit 0 - # stop running scripts +#!/bin/sh +if [ -n "$${IPKG_INSTROOT}" ]; then /etc/init.d/ddns stop /etc/init.d/ddns disable - # clear LuCI indexcache - rm -f /tmp/luci-indexcache >/dev/null 2>&1 - exit 0 # suppress errors +fi +exit 0 endef