summaryrefslogtreecommitdiffhomepage
path: root/themes/luci-theme-openwrt-2020/root
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-03-27 17:53:03 +0100
committerGitHub <noreply@github.com>2020-03-27 17:53:03 +0100
commiteed3edfe6b0b04292be5000730fbb088703fc388 (patch)
tree4da30f51f38f9174ccf8a7c2e0ead5c07d969cbe /themes/luci-theme-openwrt-2020/root
parent7194a01c2a19f2ac35a322ec33af2a115c9e3a82 (diff)
parent63b5f63a420a4f096dda4e67bf811ba2d1e842df (diff)
Merge pull request #3780 from jow-/theme-openwrt-2020
[RFC/RFT] themes: add new theme OpenWrt 2020
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