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-bootstrap
/
root
/
etc
/
uci-defaults
/
30_luci-theme-bootstrap
diff --git
a/themes/luci-theme-bootstrap/root/etc/uci-defaults/30_luci-theme-bootstrap
b/themes/luci-theme-bootstrap/root/etc/uci-defaults/30_luci-theme-bootstrap
index b5161843fea9b3eef064ce4f56a4f0612a8e7349..4381a15c2e7d1185dd4e32ac3399a0fa73c2cae8 100755
(executable)
--- a/
themes/luci-theme-bootstrap/root/etc/uci-defaults/30_luci-theme-bootstrap
+++ b/
themes/luci-theme-bootstrap/root/etc/uci-defaults/30_luci-theme-bootstrap
@@
-1,6
+1,7
@@
#!/bin/sh
if [ "$PKG_UPGRADE" != 1 ]; then
+ uci get luci.themes.Bootstrap >/dev/null 2>&1 || \
uci batch <<-EOF
set luci.themes.Bootstrap=/luci-static/bootstrap
set luci.main.mediaurlbase=/luci-static/bootstrap