summaryrefslogtreecommitdiffhomepage
path: root/config.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-02-16 20:00:58 +1100
committerFelix Fietkau <nbd@openwrt.org>2015-02-16 20:01:42 +1100
commit7ac29b75319fd69a8a7c0aeea7804d381ec07d3d (patch)
tree21af826c55598b90bbbcf4706b3d02e5c1c06c57 /config.c
parent2dae3867c8730e194c036a7827b0322726adf81a (diff)
Revert "interface: do not set device_config where only the ifname option matches"
This reverts commit 8dd2eedafccc9f898d391b93a59efb1412c5b5e9. This commit was reported to cause a regression with setting MTU on interfaces. Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'config.c')
-rw-r--r--config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.c b/config.c
index 34d2f2b..fa47b94 100644
--- a/config.c
+++ b/config.c
@@ -105,7 +105,7 @@ config_parse_interface(struct uci_section *s, bool alias)
if (iface->proto_handler && iface->proto_handler->config_params)
uci_to_blob(&b, s, iface->proto_handler->config_params);
- if (!bridge && uci_to_blob(&b, s, simple_device_type.config_params) > 1)
+ if (!bridge && uci_to_blob(&b, s, simple_device_type.config_params))
iface->device_config = true;
config = blob_memdup(b.head);