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

Some fixes for RUTX

This commit is contained in:
Ycarus (Yannick Chabanois) 2022-03-08 21:11:07 +01:00
parent c1f8489be6
commit 56abd19ae3
18 changed files with 536 additions and 40 deletions

View file

@ -113,7 +113,7 @@ generate_network() {
local ipad
case "$1" in
lan)
ipad=${ipaddr:-"192.168.1.1"}
ipad=${ipaddr:-"192.168.100.1"}
;;
*) ipad=${ipaddr:-"192.168.$((addr_offset++)).1"} ;;
esac
@ -365,10 +365,9 @@ generate_static_system() {
if json_is_a system object; then
json_select system
local hostname
if json_get_var hostname hostname; then
#uci -q set "system.@system[-1].hostname=$hostname"
uci -q set "system.@system[-1].hostname=OpenMPTCProuter"
fi
#if json_get_var hostname hostname; then
# uci -q set "system.@system[-1].hostname=$hostname"
#fi
if json_is_a ntpserver array; then
local keys key