1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Set theme only if new

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-09-23 10:13:03 +02:00
parent e4cd65a319
commit 9974af90c7

View file

@ -1,7 +1,10 @@
#!/bin/sh #!/bin/sh
uci batch <<-EOF
set luci.themes.OpenMPTCProuter=/luci-static/openmptcprouter if [ "$(uci -q get luci.themes.OpenMPTCProuter)" = "" ]; then
set luci.main.mediaurlbase=/luci-static/openmptcprouter uci batch <<-EOF
commit luci set luci.themes.OpenMPTCProuter=/luci-static/openmptcprouter
EOF set luci.main.mediaurlbase=/luci-static/openmptcprouter
commit luci
EOF
fi
exit 0 exit 0