Changeset 47673


Ignore:
Timestamp:
2015-11-30T11:43:18+01:00 (2 years ago)
Author:
jow
Message:

base-files: uci-defaults-new: fix unquoted variables

Properly quote variables in ucidef_set_interface_lan() and
ucidef_set_interface_lan(), otherwise interfaces with multiple devices
are not properly written into the configuration.

Signed-off-by: Jo-Philipp Wich <jow@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/base-files/files/lib/functions/uci-defaults-new.sh

    r47671 r47673  
    6161 
    6262        json_select_object network 
    63         _ucidef_set_interface lan $lan_if 
     63        _ucidef_set_interface lan "$lan_if" 
    6464        json_select .. 
    6565} 
     
    6969 
    7070        json_select_object network 
    71         _ucidef_set_interface wan $wan_if 
     71        _ucidef_set_interface wan "$wan_if" 
    7272        json_select .. 
    7373} 
     
    7878 
    7979        json_select_object network 
    80         _ucidef_set_interface lan $lan_if 
    81         _ucidef_set_interface wan $wan_if 
     80        _ucidef_set_interface lan "$lan_if" 
     81        _ucidef_set_interface wan "$wan_if" 
    8282        json_select .. 
    8383} 
     
    199199        local cpu_port='' 
    200200 
    201         case $vlan in 
     201        case "$vlan" in 
    202202        1)      vlan=lan;; 
    203203        2)      vlan=wan;; 
Note: See TracChangeset for help on using the changeset viewer.