ddns-scripts: remove postinst and prerm script call
authorFlorian Eckert <fe@dev.tdt.de>
Tue, 3 Feb 2026 09:54:54 +0000 (10:54 +0100)
committerFlorian Eckert <Eckert.Florian@googlemail.com>
Mon, 9 Feb 2026 13:29:09 +0000 (14:29 +0100)
For reasons that have not been investigated in detail, the package blocks
during 'postinst' with the new 'apk' backend when the package is installed
on the target.

After much back and forth, it turned out that the '/etc/init.d/ddns start'
command is responsible for this. The call is blocking.

The command '/etc/init.d/ddns enabled' in the 'postinst' also makes no sense
here, as it only checks whether the ddns service is enabled. The return value
is not checked at all. And the 'prerm' script is also not needed, as the
calls made there are implicitly called during package deinstallation.

Therefore, this commit removes the entire and not needed 'postinst' and
'prerm' script call.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
net/ddns-scripts/Makefile

index bcff0212f8c797f738090ef75be7926ae4a43883..658659fb7a18a0fcf5c0ec4b9077e9c3e71712f4 100755 (executable)
@@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=ddns-scripts
 PKG_VERSION:=2.8.2
-PKG_RELEASE:=89
+PKG_RELEASE:=90
 
 PKG_LICENSE:=GPL-2.0
 
@@ -427,24 +427,6 @@ define Package/ddns-scripts/install
                $(1)/etc/uci-defaults/
 endef
 
-define Package/ddns-scripts/postinst
-#!/bin/sh
-if [ -z "$${IPKG_INSTROOT}" ]; then
-       /etc/init.d/ddns enabled
-       /etc/init.d/ddns start
-fi
-exit 0
-endef
-
-define Package/ddns-scripts/prerm
-#!/bin/sh
-if [ -n "$${IPKG_INSTROOT}" ]; then
-       /etc/init.d/ddns stop
-       /etc/init.d/ddns disable
-fi
-exit 0
-endef
-
 
 define Package/ddns-scripts-services/install
        $(INSTALL_DIR) $(1)/usr/share/ddns/default