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

Change redundant name to balancing

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-03-27 10:25:51 +01:00
parent 757609dc4f
commit a50de01f56
2 changed files with 7 additions and 2 deletions

View file

@ -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'