projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
luci-theme-*: set mediaurlbase if it is the first time to be installed
[project/luci.git]
/
themes
/
luci-theme-openwrt
/
root
/
etc
/
uci-defaults
/
30_luci-theme-openwrt
diff --git
a/themes/luci-theme-openwrt/root/etc/uci-defaults/30_luci-theme-openwrt
b/themes/luci-theme-openwrt/root/etc/uci-defaults/30_luci-theme-openwrt
index 77e2f6064bf77cf1b5809e5a3c1c88ca1557b2c2..7ee8c193d79b9b91cd9827695340ce9cd4f7e653 100755
(executable)
--- a/
themes/luci-theme-openwrt/root/etc/uci-defaults/30_luci-theme-openwrt
+++ b/
themes/luci-theme-openwrt/root/etc/uci-defaults/30_luci-theme-openwrt
@@
-1,6
+1,7
@@
#!/bin/sh
if [ "$PKG_UPGRADE" != 1 ]; then
+ uci get luci.themes.OpenWrt >/dev/null 2>&1 || \
uci batch <<-EOF
set luci.themes.OpenWrt=/luci-static/openwrt.org
set luci.main.mediaurlbase=/luci-static/openwrt.org