From 5d6e6f495d59308cf8d13fa27afc241fa41f894d Mon Sep 17 00:00:00 2001 From: sbwml Date: Sat, 27 May 2023 15:18:15 +0800 Subject: [PATCH] luci-theme-argon: restore the bootstrap theme after uninstall --- luci-theme-argon/Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/luci-theme-argon/Makefile b/luci-theme-argon/Makefile index 4ca2ccb..c1f12a4 100644 --- a/luci-theme-argon/Makefile +++ b/luci-theme-argon/Makefile @@ -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