mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-12 10:31:51 +00:00
Set theme only if new
This commit is contained in:
parent
e4cd65a319
commit
9974af90c7
1 changed files with 8 additions and 5 deletions
|
@ -1,7 +1,10 @@
|
|||
#!/bin/sh
|
||||
uci batch <<-EOF
|
||||
set luci.themes.OpenMPTCProuter=/luci-static/openmptcprouter
|
||||
set luci.main.mediaurlbase=/luci-static/openmptcprouter
|
||||
commit luci
|
||||
EOF
|
||||
|
||||
if [ "$(uci -q get luci.themes.OpenMPTCProuter)" = "" ]; then
|
||||
uci batch <<-EOF
|
||||
set luci.themes.OpenMPTCProuter=/luci-static/openmptcprouter
|
||||
set luci.main.mediaurlbase=/luci-static/openmptcprouter
|
||||
commit luci
|
||||
EOF
|
||||
fi
|
||||
exit 0
|
||||
|
|
Loading…
Reference in a new issue