summaryrefslogtreecommitdiffhomepage
path: root/themes
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-07-23 11:32:53 +0000
committerSteven Barth <steven@midlink.org>2008-07-23 11:32:53 +0000
commit71306947ea3cdc01ca804d1a697339d5a3fb27c4 (patch)
treed2f36dc6e4d0a57309a95c82e17a8b6638fa9d23 /themes
parent4deb48622868cfbf6b7d9a8f710df16825aec664 (diff)
themes: Add registration of themes at package installation time
Diffstat (limited to 'themes')
-rwxr-xr-xthemes/openwrt.org/ipkg/postinst4
-rwxr-xr-xthemes/openwrt.org/root/etc/uci-defaults/luci-theme-openwrt6
2 files changed, 10 insertions, 0 deletions
diff --git a/themes/openwrt.org/ipkg/postinst b/themes/openwrt.org/ipkg/postinst
new file mode 100755
index 000000000..48ea52273
--- /dev/null
+++ b/themes/openwrt.org/ipkg/postinst
@@ -0,0 +1,4 @@
+#!/bin/sh
+[ -n "${IPKG_INSTROOT}" ] || {
+ ( . /etc/uci-defaults/luci-theme-openwrt ) && rm -f /etc/uci-defaults/luci-theme-openwrt
+}
diff --git a/themes/openwrt.org/root/etc/uci-defaults/luci-theme-openwrt b/themes/openwrt.org/root/etc/uci-defaults/luci-theme-openwrt
new file mode 100755
index 000000000..a8bef6c92
--- /dev/null
+++ b/themes/openwrt.org/root/etc/uci-defaults/luci-theme-openwrt
@@ -0,0 +1,6 @@
+#!/bin/sh
+uci batch <<-EOF
+ set luci.themes.OpenWRT=/luci-static/openwrt.org
+ commit luci
+EOF
+