summaryrefslogtreecommitdiffhomepage
path: root/themes/luci-theme-openwrt-2020/root
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-03-23 22:31:50 +0100
committerJo-Philipp Wich <jo@mein.io>2020-03-26 09:54:40 +0100
commit63b5f63a420a4f096dda4e67bf811ba2d1e842df (patch)
tree31ad354f556ce598f5f2a0f0484f2502e722eac4 /themes/luci-theme-openwrt-2020/root
parent0fb2f8f1d1d8748b56522cc81cf68d5aa04b9f50 (diff)
themes: add new theme OpenWrt 2020
Introduce a new theme modelled after the logo guidelines published in https://openwrt.org/_media/docs/guide-graphic-designer/openwrt-logo-usage-guidelines.pdf Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'themes/luci-theme-openwrt-2020/root')
-rwxr-xr-xthemes/luci-theme-openwrt-2020/root/etc/uci-defaults/30_luci-theme-openwrt-202011
1 files changed, 11 insertions, 0 deletions
diff --git a/themes/luci-theme-openwrt-2020/root/etc/uci-defaults/30_luci-theme-openwrt-2020 b/themes/luci-theme-openwrt-2020/root/etc/uci-defaults/30_luci-theme-openwrt-2020
new file mode 100755
index 0000000000..45e742ad73
--- /dev/null
+++ b/themes/luci-theme-openwrt-2020/root/etc/uci-defaults/30_luci-theme-openwrt-2020
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+if [ "$PKG_UPGRADE" != 1 ]; then
+ uci batch <<-EOF
+ set luci.themes.OpenWrt2020=/luci-static/openwrt2020
+ set luci.main.mediaurlbase=/luci-static/openwrt2020
+ commit luci
+ EOF
+fi
+
+exit 0