Merge pull request #5100 from SvenRoederer/uci-defaults

luci.mk: don't run uci-defaults scripts ourself
This commit is contained in:
Jo-Philipp Wich 2021-06-05 19:12:11 +02:00 committed by GitHub
commit e598f34e29
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -206,8 +206,7 @@ endef
ifndef Package/$(PKG_NAME)/postinst
define Package/$(PKG_NAME)/postinst
[ -n "$${IPKG_INSTROOT}" ] || {$(foreach script,$(LUCI_DEFAULTS),
(. /etc/uci-defaults/$(script)) && rm -f /etc/uci-defaults/$(script))
[ -n "$${IPKG_INSTROOT}" ] || { \
rm -f /tmp/luci-indexcache
rm -rf /tmp/luci-modulecache/
killall -HUP rpcd 2>/dev/null