OpenWrt – Diff between revs 2 and 3

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 2 Rev 3
Line 39... Line 39...
39 local config="$1" 39 local config="$1"
40 local ifname type device l3dev 40 local ifname type device l3dev
Line 41... Line 41...
41   41  
42 config_get type "$config" type 42 config_get type "$config" type
-   43 config_get ifname "$config" ifname
43 config_get ifname "$config" ifname 44 config_get device "$config" device "$ifname"
-   45 [ "bridge" = "$type" ] && ifname="br-$config"
44 [ "bridge" = "$type" ] && ifname="br-$config" 46 config_set "$config" device "$ifname"
45 ubus_call "network.interface.$config" status || return 0 47 ubus_call "network.interface.$config" status || return 0
46 json_get_var l3dev l3_device 48 json_get_var l3dev l3_device
47 [ -n "$l3dev" ] && ifname="$l3dev" 49 [ -n "$l3dev" ] && ifname="$l3dev"
48 json_init 50 json_init
-   51 config_set "$config" ifname "$ifname"
49 config_set "$config" ifname "$ifname" 52 config_set "$config" device "$device"
Line 50... Line 53...
50 } 53 }
51   54  
52 scan_interfaces() { 55 scan_interfaces() {