luci-theme-: add postrm script
Remove uci theme config section on uninstall. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
parent
8991355c33
commit
21b40652d9
4 changed files with 34 additions and 0 deletions
|
@ -11,6 +11,16 @@ LUCI_DEPENDS:=
|
|||
|
||||
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
|
||||
|
||||
# call BuildPackage - OpenWrt buildroot signature
|
||||
|
|
|
@ -9,6 +9,14 @@ include $(TOPDIR)/rules.mk
|
|||
LUCI_TITLE:=Material Theme
|
||||
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
|
||||
|
||||
# call BuildPackage - OpenWrt buildroot signature
|
||||
|
|
|
@ -9,6 +9,14 @@ include $(TOPDIR)/rules.mk
|
|||
LUCI_TITLE:=LuCI modern OpenWrt theme
|
||||
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
|
||||
|
||||
# call BuildPackage - OpenWrt buildroot signature
|
||||
|
|
|
@ -9,6 +9,14 @@ include $(TOPDIR)/rules.mk
|
|||
LUCI_TITLE:=LuCI OpenWrt.org theme
|
||||
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
|
||||
|
||||
# call BuildPackage - OpenWrt buildroot signature
|
||||
|
|
Loading…
Reference in a new issue