Change alpha to $(THEME_NAME)

This commit is contained in:
Ryukura 2025-01-04 00:34:29 +07:00 committed by GitHub
parent dca9cdfc94
commit 4c0a53b502
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -47,9 +47,9 @@ endef
define Package/luci-theme-$(THEME_NAME)/postinst define Package/luci-theme-$(THEME_NAME)/postinst
#!/bin/sh #!/bin/sh
if [ -z "$${IPKG_INSTROOT}" ]; then if [ -z "$${IPKG_INSTROOT}" ]; then
if [ -f /etc/uci-defaults/30-luci-theme-alpha ]; then if [ -f /etc/uci-defaults/30-luci-theme-$(THEME_NAME) ]; then
. /etc/uci-defaults/30-luci-theme-alpha . /etc/uci-defaults/30-luci-theme-$(THEME_NAME)
rm -f /etc/uci-defaults/30-luci-theme-alpha rm -f /etc/uci-defaults/30-luci-theme-$(THEME_NAME)
fi fi
fi fi
exit 0 exit 0