Make dynamic interfaces always autostart
authorSteven Barth <steven@midlink.org>
Wed, 23 Jul 2014 16:04:47 +0000 (18:04 +0200)
committerSteven Barth <steven@midlink.org>
Wed, 23 Jul 2014 16:04:47 +0000 (18:04 +0200)
Signed-off-by: Steven Barth <steven@midlink.org>
interface.c

index ea252083ae1ea48c404cea7280660175994c134c..4c92f10962db451fe23bbceb6a82c48d34ac4c7c 100644 (file)
@@ -709,6 +709,7 @@ interface_alloc(const char *name, struct blob_attr *config)
 void interface_set_dynamic(struct interface *iface)
 {
        iface->dynamic = true;
+       iface->autostart = true;
        iface->node.version = -1; // Don't delete on reload
 }