diff --git a/openmptcprouter/files/etc/init.d/openmptcprouter-vps b/openmptcprouter/files/etc/init.d/openmptcprouter-vps index 9edb825576..f11cfe5fa1 100755 --- a/openmptcprouter/files/etc/init.d/openmptcprouter-vps +++ b/openmptcprouter/files/etc/init.d/openmptcprouter-vps @@ -2311,6 +2311,10 @@ token() { config_foreach _get_token server } +_fix_server() { + uci -q rename openmptcprouter.$1=server +} + start_service() { serversnb=0 wanips="" @@ -2318,6 +2322,7 @@ start_service() { [ -z "$serial" ] && [ -f "/usr/sbin/dmidecode" ] && serial=$(/usr/sbin/dmidecode -t 1 | egrep 'Serial' | awk '{print $3}') uci -q set openmptcprouter.settings.serial=${serial} config_load openmptcprouter + config_foreach _fix_server openmptcprouter config_foreach _count_server server config_foreach _get_local_wan_ip interface config_foreach _config_service server