summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2016-08-26 16:00:27 +0200
committerMichael Biebl <biebl@debian.org>2016-08-26 16:00:29 +0200
commit957b1644fdff2ff6bce4fb9c3af381b5148dae50 (patch)
treecb01240ec9fdb6bd795b3ae8261dc685afa46b85
parentb34e6c7447710617014d2431d3fa80c5f740d63c (diff)
Ignore new "connectivity-change" events in ifupdown dispatcher hook
-rw-r--r--debian/changelog1
-rw-r--r--debian/network-manager-dispatcher.script6
2 files changed, 7 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index 704842dc..b4a42668 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ network-manager (1.4.0-1) UNRELEASED; urgency=medium
   * New upstream release.
   * Rebase patches.
   * Update symbols file for libnm0.
+  * Ignore new "connectivity-change" events in ifupdown dispatcher hook.
 
  -- Michael Biebl <biebl@debian.org>  Fri, 26 Aug 2016 02:19:45 +0200
 
diff --git a/debian/network-manager-dispatcher.script b/debian/network-manager-dispatcher.script
index ebadfd10..5ac31f07 100644
--- a/debian/network-manager-dispatcher.script
+++ b/debian/network-manager-dispatcher.script
@@ -4,6 +4,12 @@
 # Runs ifupdown scripts when NetworkManager fiddles with interfaces.
 # See NetworkManager(8) for further documentation of the dispatcher events.
 
+# We do not handle connectivity-change events in ifupdown so simply exit at
+# this point
+if [ "$2" = "connectivity-change" ]; then
+    exit 0;
+fi
+
 if [ -z "$1" ]; then
     echo "$0: called with no interface" 1>&2
     exit 1;