From 63b5f63a420a4f096dda4e67bf811ba2d1e842df Mon Sep 17 00:00:00 2001
From: Jo-Philipp Wich <jo@mein.io>
Date: Mon, 23 Mar 2020 22:31:50 +0100
Subject: 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>
---
 .../root/etc/uci-defaults/30_luci-theme-openwrt-2020          | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100755 themes/luci-theme-openwrt-2020/root/etc/uci-defaults/30_luci-theme-openwrt-2020

(limited to 'themes/luci-theme-openwrt-2020/root/etc/uci-defaults/30_luci-theme-openwrt-2020')

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
-- 
cgit v1.2.3