From 87b106cc9fd1b1f63295be0cd990f8b336407d74 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Wed, 16 Sep 2020 15:28:51 +0200 Subject: [PATCH] ddns-scripts: cleanup postinst script Signed-off-by: Florian Eckert --- net/ddns-scripts/Makefile | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/net/ddns-scripts/Makefile b/net/ddns-scripts/Makefile index d50c106bc8..f1c430c46d 100755 --- a/net/ddns-scripts/Makefile +++ b/net/ddns-scripts/Makefile @@ -200,16 +200,12 @@ define Package/ddns-scripts/install endef define Package/ddns-scripts/postinst - #!/bin/sh - # if NOT run buildroot and PKG_UPGRADE then (re)start service if enabled - [ -z "$${IPKG_INSTROOT}" -a "$${PKG_UPGRADE}" = "1" ] && { - [ -x /etc/uci-defaults/ddns ] && \ - /etc/uci-defaults/ddns && \ - rm -f /etc/uci-defaults/ddns >/dev/null 2>&1 - /etc/init.d/ddns enabled && \ - /etc/init.d/ddns start >/dev/null 2>&1 - } - exit 0 # suppress errors +#!/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 -- 2.30.2