summaryrefslogtreecommitdiffhomepage
path: root/themes
diff options
context:
space:
mode:
Diffstat (limited to 'themes')
-rwxr-xr-xthemes/fledermaus/ipkg/postinst4
-rwxr-xr-xthemes/fledermaus/root/etc/uci-defaults/luci-theme-fledermaus6
2 files changed, 10 insertions, 0 deletions
diff --git a/themes/fledermaus/ipkg/postinst b/themes/fledermaus/ipkg/postinst
new file mode 100755
index 000000000..1951df576
--- /dev/null
+++ b/themes/fledermaus/ipkg/postinst
@@ -0,0 +1,4 @@
+#!/bin/sh
+[ -n "${IPKG_INSTROOT}" ] || {
+ ( . /etc/uci-defaults/luci-theme-fledermaus ) && rm -f /etc/uci-defaults/luci-theme-fledermaus
+}
diff --git a/themes/fledermaus/root/etc/uci-defaults/luci-theme-fledermaus b/themes/fledermaus/root/etc/uci-defaults/luci-theme-fledermaus
new file mode 100755
index 000000000..83e472b63
--- /dev/null
+++ b/themes/fledermaus/root/etc/uci-defaults/luci-theme-fledermaus
@@ -0,0 +1,6 @@
+#!/bin/sh
+uci batch <<-EOF
+ set luci.themes.Fledermaus=/luci-static/fledermaus
+ commit luci
+EOF
+