mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
ddns-scripts: cleanup postinst script
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
@@ -200,16 +200,12 @@ define Package/ddns-scripts/install
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/ddns-scripts/postinst
|
define Package/ddns-scripts/postinst
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# if NOT run buildroot and PKG_UPGRADE then (re)start service if enabled
|
if [ -z "$${IPKG_INSTROOT}" ]; then
|
||||||
[ -z "$${IPKG_INSTROOT}" -a "$${PKG_UPGRADE}" = "1" ] && {
|
/etc/init.d/ddns enabled
|
||||||
[ -x /etc/uci-defaults/ddns ] && \
|
/etc/init.d/ddns start
|
||||||
/etc/uci-defaults/ddns && \
|
fi
|
||||||
rm -f /etc/uci-defaults/ddns >/dev/null 2>&1
|
exit 0
|
||||||
/etc/init.d/ddns enabled && \
|
|
||||||
/etc/init.d/ddns start >/dev/null 2>&1
|
|
||||||
}
|
|
||||||
exit 0 # suppress errors
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/ddns-scripts/prerm
|
define Package/ddns-scripts/prerm
|
||||||
|
|||||||
Reference in New Issue
Block a user