themes: Add registration of themes at package installation time

This commit is contained in:
Steven Barth 2008-07-23 11:32:53 +00:00
parent 4deb486228
commit 71306947ea
3 changed files with 10 additions and 1 deletions

View file

@ -44,4 +44,3 @@ config internal template
option compiledir "/tmp/.lucitplcache"
config internal themes
option OpenWRT "/luci-static/openwrt.org"

View file

@ -0,0 +1,4 @@
#!/bin/sh
[ -n "${IPKG_INSTROOT}" ] || {
( . /etc/uci-defaults/luci-theme-openwrt ) && rm -f /etc/uci-defaults/luci-theme-openwrt
}

View file

@ -0,0 +1,6 @@
#!/bin/sh
uci batch <<-EOF
set luci.themes.OpenWRT=/luci-static/openwrt.org
commit luci
EOF