Skip to content
Snippets Groups Projects
  • Mathias Kresin's avatar
    0f01253b
    base-files: always set proto passed to _ucidef_set_interface() · 0f01253b
    Mathias Kresin authored
    
    Overwrite an already set proto if a new one is passed to
    _ucidef_set_interface() similar to what is done for the interface.
    
    It is required when using ""ucidef_set_interface_wan 'ptm0' 'pppoe'"
    after some initial wan interface configuration is already done by
    ucidef_add_switch.
    
    The "json_is_a protocol string" guard is meant to not reset an earlier
    set interface proto in case something like
    "ucidef_set_interface_lan 'eth0'" is used afterwards.
    
    Signed-off-by: default avatarMathias Kresin <dev@kresin.me>
    0f01253b
    History
    base-files: always set proto passed to _ucidef_set_interface()
    Mathias Kresin authored
    
    Overwrite an already set proto if a new one is passed to
    _ucidef_set_interface() similar to what is done for the interface.
    
    It is required when using ""ucidef_set_interface_wan 'ptm0' 'pppoe'"
    after some initial wan interface configuration is already done by
    ucidef_add_switch.
    
    The "json_is_a protocol string" guard is meant to not reset an earlier
    set interface proto in case something like
    "ucidef_set_interface_lan 'eth0'" is used afterwards.
    
    Signed-off-by: default avatarMathias Kresin <dev@kresin.me>