From: Felix Fietkau Date: Fri, 23 Jan 2015 23:53:28 +0000 (+0100) Subject: interface: do not set device_config where only the ifname option matches X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8dd2eedafccc9f898d391b93a59efb1412c5b5e9;p=oweals%2Fnetifd.git interface: do not set device_config where only the ifname option matches Signed-off-by: Felix Fietkau --- diff --git a/config.c b/config.c index 8b6a5ba..7319b3c 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)) + if (!bridge && uci_to_blob(&b, s, simple_device_type.config_params) > 1) iface->device_config = true; config = blob_memdup(b.head);