summaryrefslogtreecommitdiffstats
path: root/package/netifd/files/lib/network
diff options
context:
space:
mode:
Diffstat (limited to 'package/netifd/files/lib/network')
-rwxr-xr-xpackage/netifd/files/lib/network/config.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/netifd/files/lib/network/config.sh b/package/netifd/files/lib/network/config.sh
index 4ce362eb1..ab3efe8c0 100755
--- a/package/netifd/files/lib/network/config.sh
+++ b/package/netifd/files/lib/network/config.sh
@@ -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() {