summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSven Roederer <devel-sven@geroedel.de>2021-06-04 23:04:37 +0200
committerGitHub <noreply@github.com>2021-06-04 23:04:37 +0200
commit70631277db2dad7a950396275783d8856a15a136 (patch)
tree791f4e2efcbdc257f51b4d9e2aaa4d9f6d6633a2
parent1bfeec69948c4743ec61f0778919f14643844bd5 (diff)
luci.mk: don't run uci-defaults scripts ourself
Do not run the uci-defaults scripts of a package in the package-postinst, but leave this for the default_postinst() of the OpenWrt base-files package. Signed-off-by: Sven Roederer <devel-sven@geroedel.de>
-rw-r--r--luci.mk3
1 files changed, 1 insertions, 2 deletions
diff --git a/luci.mk b/luci.mk
index 636cf316ec..fb49da0eee 100644
--- a/luci.mk
+++ b/luci.mk
@@ -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