mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-10 11:09:57 +08:00
netifd: fix legacy scripts that expect the ifname option to be mapped to the device option after fixup
SVN-Revision: 30003
This commit is contained in:
parent
f99bf6517c
commit
bffa830f13
@ -26,6 +26,7 @@ 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
|
||||
@ -33,6 +34,7 @@ fixup_interface() {
|
||||
[ -n "$l3dev" ] && ifname="$l3dev"
|
||||
json_init
|
||||
config_set "$config" ifname "$ifname"
|
||||
config_set "$config" device "$device"
|
||||
}
|
||||
|
||||
scan_interfaces() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user