ddns-scripts: cleanup prerm script
authorFlorian Eckert <redacted>
Wed, 16 Sep 2020 13:11:32 +0000 (15:11 +0200)
committerFlorian Eckert <redacted>
Mon, 21 Sep 2020 08:17:01 +0000 (10:17 +0200)
Signed-off-by: Florian Eckert <redacted>
net/ddns-scripts/Makefile

index f0850fe27eb48f7213c7bb71105f5f0c831c41e8..13bf82d29a830dd1bfed5f5ee12c50967ef406a2 100755 (executable)
@@ -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
 
 
git clone https://git.99rst.org/PROJECT