luci-theme-argon: restore the bootstrap theme after uninstall

This commit is contained in:
sbwml 2023-05-27 15:18:15 +08:00
parent c950f8c4c1
commit 5d6e6f495d

View File

@ -10,6 +10,15 @@ LUCI_TITLE:=Argon Theme
PKG_VERSION:=2.3.1
PKG_RELEASE:=20230420
define Package/luci-theme-argon/postrm
#!/bin/sh
[ -n "$${IPKG_INSTROOT}" ] || {
uci -q delete luci.themes.Argon
uci set luci.main.mediaurlbase='/luci-static/bootstrap'
uci commit luci
}
endef
include $(TOPDIR)/feeds/luci/luci.mk
# call BuildPackage - OpenWrt buildroot signature