Skip to content

Commit

Permalink
netifd: fix legacy scripts that expect the ifname option to be mapped…
Browse files Browse the repository at this point in the history
… to the device option after fixup

SVN-Revision: 30003
  • Loading branch information
Felix Fietkau committed Feb 2, 2012
1 parent f99bf65 commit bffa830
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions package/netifd/files/lib/network/config.sh
Expand Up @@ -26,13 +26,15 @@ fixup_interface() {

config_get type "$config" type
config_get ifname "$config" ifname
config_get device "$config" device "$ifname"
[ "bridge" = "$type" ] && ifname="br-$config"
config_set "$config" device "$ifname"
ubus_call "network.interface.$config" status
json_get_var l3dev l3_device
[ -n "$l3dev" ] && ifname="$l3dev"
json_init
config_set "$config" ifname "$ifname"
config_set "$config" device "$device"
}

scan_interfaces() {
Expand Down

0 comments on commit bffa830

Please sign in to comment.