diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-10-19 01:32:55 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-10-19 01:32:55 +0200 |
commit | f8276b9b149f3b0c8f3cdf8d3d0c232bd92e3464 (patch) | |
tree | eba0adb88f9e0408740c2855922db80ece63d55e /vlan.c | |
parent | beecba5195b2f1180f0bdfb6f61f0dbd3dff0eba (diff) |
apply device settings to simple devices with config specified from the interface section (legacy format compatibility), but only if no other config was provided
Diffstat (limited to 'vlan.c')
-rw-r--r-- | vlan.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -94,6 +94,7 @@ static struct device *get_vlan_device(struct device *dev, int id, bool create) snprintf(vldev->dev.ifname, IFNAMSIZ, "%s.%d", dev->ifname, id); device_init(&vldev->dev, &vlan_type, NULL); + vldev->dev.default_config = true; vldev->set_state = vldev->dev.set_state; vldev->dev.set_state = vlan_set_device_state; |