mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-12 18:41:51 +00:00
Change redundant name to balancing
This commit is contained in:
parent
757609dc4f
commit
a50de01f56
2 changed files with 7 additions and 2 deletions
|
@ -201,7 +201,7 @@
|
|||
<option value="change" <% if luci.model.uci.cursor():get("openmptcprouter","settings","master") == "change" then %>selected="selected"<% end %>><%:On wizard change%></option>
|
||||
<option value="dynamic" <% if luci.model.uci.cursor():get("openmptcprouter","settings","master") == "dynamic" then %>selected="selected"<% end %>><%:Dynamic change%></option>
|
||||
<option value="static" <% if luci.model.uci.cursor():get("openmptcprouter","settings","master") == "static" then %>selected="selected"<% end %>><%:No change%></option>
|
||||
<option value="redundant" <% if luci.model.uci.cursor():get("openmptcprouter","settings","master") == "redundant" then %>selected="selected"<% end %>><%:Redundant%></option>
|
||||
<option value="balancing" <% if luci.model.uci.cursor():get("openmptcprouter","settings","master") == "balancing" then %>selected="selected"<% end %>><%:Balancing%></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -49,11 +49,16 @@ if [ "$(uci -q get openmptcprouter.omr)" != "router" ]; then
|
|||
fi
|
||||
if [ "$(uci -q get openmptcprouter.settings.master)" = "dynamic" ]; then
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
set openmptcprouter.settings=settings
|
||||
set openmptcprouter.settings.master='change'
|
||||
commit openmptcprouter
|
||||
EOF
|
||||
fi
|
||||
if [ "$(uci -q get openmptcprouter.settings.master)" = "redundant" ] || [ "$(uci -q get openmptcprouter.settings.master)" = "" ]; then
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
set openmptcprouter.settings.master='balancing'
|
||||
commit openmptcprouter
|
||||
EOF
|
||||
fi
|
||||
if [ "$(uci -q get openmptcprouter.vps.port)" = "" ]; then
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
set openmptcprouter.vps.port='65500'
|
||||
|
|
Loading…
Reference in a new issue