From: Daniel F. Dickinson Date: Wed, 5 Aug 2026 04:09:22 +0000 (-0400) Subject: nut: drop unnecessary postinsts X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=f444e3c1eb8b5a611796324148ccb79802b6b9cc;p=openwrt-packages.git nut: drop unnecessary postinsts The uci-defaults scripts are already sourced and removed by default_postinst so nut-server and nut-upsmon postinsts in this Makefile are not needed. Signed-off-by: Daniel F. Dickinson --- diff --git a/net/nut/Makefile b/net/nut/Makefile index b9e480400..8d294974b 100644 --- a/net/nut/Makefile +++ b/net/nut/Makefile @@ -165,12 +165,6 @@ define Package/nut-server/conffiles /etc/nut/ups.conf endef -define Package/nut-server/postinst -#!/bin/sh -[ -n "$${IPKG_INSTROOT}" ] || (. /etc/uci-defaults/90_nut-server) && rm -f /etc/uci-defaults/90_nut-server -exit 0 -endef - define Package/nut-upsmon $(call Package/nut/Default) TITLE+= (monitor) @@ -194,12 +188,6 @@ define Package/nut-upsmon/conffiles /etc/nut/upsmon.conf endef -define Package/nut-upsmon/postinst -#!/bin/sh -[ -n "$${IPKG_INSTROOT}" ] || (. /etc/uci-defaults/90_nut-upsmon) && rm -f /etc/uci-defaults/90_nut-upsmon -exit 0 -endef - define Package/nut-upsmon/install $(INSTALL_DIR) $(1)/etc/nut $(INSTALL_DIR) $(1)/usr/sbin