local lan_if="$1"
json_select_object network
- _ucidef_set_interface lan $lan_if
+ _ucidef_set_interface lan "$lan_if"
json_select ..
}
local wan_if="$1"
json_select_object network
- _ucidef_set_interface wan $wan_if
+ _ucidef_set_interface wan "$wan_if"
json_select ..
}
local wan_if="$2"
json_select_object network
- _ucidef_set_interface lan $lan_if
- _ucidef_set_interface wan $wan_if
+ _ucidef_set_interface lan "$lan_if"
+ _ucidef_set_interface wan "$wan_if"
json_select ..
}
local ports="$3"
local cpu_port=''
- case $vlan in
+ case "$vlan" in
1) vlan=lan;;
2) vlan=wan;;
*) vlan=vlan$vlan;;