Merge pull request #6191 from TDT-AG/pr/20230109-luci-theme

luci-theme-: add postrm script
This commit is contained in:
Florian Eckert 2023-01-09 13:44:38 +01:00 committed by GitHub
commit 41991f8d2a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 34 additions and 0 deletions

View file

@ -11,6 +11,16 @@ LUCI_DEPENDS:=
PKG_LICENSE:=Apache-2.0 PKG_LICENSE:=Apache-2.0
define Package/luci-theme-bootstrap/postrm
#!/bin/sh
[ -n "$${IPKG_INSTROOT}" ] || {
uci -q delete luci.themes.Bootstrap
uci -q delete luci.themes.BootstrapDark
uci -q delete luci.themes.BootstrapLight
uci commit luci
}
endef
include ../../luci.mk include ../../luci.mk
# call BuildPackage - OpenWrt buildroot signature # call BuildPackage - OpenWrt buildroot signature

View file

@ -9,6 +9,14 @@ include $(TOPDIR)/rules.mk
LUCI_TITLE:=Material Theme LUCI_TITLE:=Material Theme
LUCI_DEPENDS:= LUCI_DEPENDS:=
define Package/luci-theme-material/postrm
#!/bin/sh
[ -n "$${IPKG_INSTROOT}" ] || {
uci -q delete luci.themes.Material
uci commit luci
}
endef
include ../../luci.mk include ../../luci.mk
# call BuildPackage - OpenWrt buildroot signature # call BuildPackage - OpenWrt buildroot signature

View file

@ -9,6 +9,14 @@ include $(TOPDIR)/rules.mk
LUCI_TITLE:=LuCI modern OpenWrt theme LUCI_TITLE:=LuCI modern OpenWrt theme
LUCI_DEPENDS:= LUCI_DEPENDS:=
define Package/luci-theme-openwrt-2020/postrm
#!/bin/sh
[ -n "$${IPKG_INSTROOT}" ] || {
uci -q delete luci.themes.OpenWrt2020
uci commit luci
}
endef
include ../../luci.mk include ../../luci.mk
# call BuildPackage - OpenWrt buildroot signature # call BuildPackage - OpenWrt buildroot signature

View file

@ -9,6 +9,14 @@ include $(TOPDIR)/rules.mk
LUCI_TITLE:=LuCI OpenWrt.org theme LUCI_TITLE:=LuCI OpenWrt.org theme
LUCI_DEPENDS:= LUCI_DEPENDS:=
define Package/luci-theme-openwrt/postrm
#!/bin/sh
[ -n "$${IPKG_INSTROOT}" ] || {
uci -q delete luci.themes.OpenWrt
uci commit luci
}
endef
include ../../luci.mk include ../../luci.mk
# call BuildPackage - OpenWrt buildroot signature # call BuildPackage - OpenWrt buildroot signature