projects
/
oweals
/
luci.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
luci-theme-*: set mediaurlbase if it is the first time to be installed
[oweals/luci.git]
/
themes
/
luci-theme-bootstrap
/
root
/
etc
/
uci-defaults
/
30_luci-theme-bootstrap
1
#!/bin/sh
2
3
if [ "$PKG_UPGRADE" != 1 ]; then
4
uci get luci.themes.Bootstrap >/dev/null 2>&1 || \
5
uci batch <<-EOF
6
set luci.themes.Bootstrap=/luci-static/bootstrap
7
set luci.main.mediaurlbase=/luci-static/bootstrap
8
commit luci
9
EOF
10
fi
11
12
exit 0