mirror of
https://github.com/openwrt/luci.git
synced 2026-04-15 19:01:56 +00:00
themes: Add registration of themes at package installation time
This commit is contained in:
@@ -44,4 +44,3 @@ config internal template
|
||||
option compiledir "/tmp/.lucitplcache"
|
||||
|
||||
config internal themes
|
||||
option OpenWRT "/luci-static/openwrt.org"
|
||||
|
||||
4
themes/openwrt.org/ipkg/postinst
Executable file
4
themes/openwrt.org/ipkg/postinst
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
[ -n "${IPKG_INSTROOT}" ] || {
|
||||
( . /etc/uci-defaults/luci-theme-openwrt ) && rm -f /etc/uci-defaults/luci-theme-openwrt
|
||||
}
|
||||
6
themes/openwrt.org/root/etc/uci-defaults/luci-theme-openwrt
Executable file
6
themes/openwrt.org/root/etc/uci-defaults/luci-theme-openwrt
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
uci batch <<-EOF
|
||||
set luci.themes.OpenWRT=/luci-static/openwrt.org
|
||||
commit luci
|
||||
EOF
|
||||
|
||||
Reference in New Issue
Block a user