about summary refs log tree commit diff
path: root/debian/patches/05-ifupdown-allow-hotplug-autoconnect.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/05-ifupdown-allow-hotplug-autoconnect.patch')
-rw-r--r--debian/patches/05-ifupdown-allow-hotplug-autoconnect.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/debian/patches/05-ifupdown-allow-hotplug-autoconnect.patch b/debian/patches/05-ifupdown-allow-hotplug-autoconnect.patch
new file mode 100644
index 00000000..d27dfe35
--- /dev/null
+++ b/debian/patches/05-ifupdown-allow-hotplug-autoconnect.patch
@@ -0,0 +1,13 @@
+Index: NetworkManager-0.7.999/system-settings/plugins/ifupdown/plugin.c
+===================================================================
+--- NetworkManager-0.7.999.orig/system-settings/plugins/ifupdown/plugin.c	2010-02-08 16:07:48.379559508 +0100
++++ NetworkManager-0.7.999/system-settings/plugins/ifupdown/plugin.c	2010-02-08 16:08:04.255557965 +0100
+@@ -355,7 +355,7 @@
+ 	ifparser_init ();
+ 	block = ifparser_getfirst ();
+ 	while (block) {
+-		if(!strcmp ("auto", block->type))
++		if(!strcmp ("auto", block->type) || !strcmp ("allow-hotplug", block->type))
+ 			g_hash_table_insert (auto_ifaces, block->name, GUINT_TO_POINTER (1));
+ 		else if (!strcmp ("iface", block->type) && strcmp ("lo", block->name)) {
+ 			NMIfupdownConnection *exported;