about summary refs log tree commit diff
path: root/debian/network-manager.preinst
diff options
context:
space:
mode:
authorLaurent Bigonville <bigon@bigon.be>2014-04-03 20:48:15 +0200
committerLaurent Bigonville <bigon@bigon.be>2014-04-04 01:43:16 +0200
commitd7fc4e779a6ad704def2f942b1af0d3ecffb26ea (patch)
treeacd970c82fd4528f338fc4584e4bd401755eb97b /debian/network-manager.preinst
parent4f8f6ddb7167d6ccfa8329e4f3fdde447847c8b3 (diff)
Rework the fix for #734460, kill NetworkManager in the postinst script instead of the preinst one to minimize downtime on big upgrades
Diffstat (limited to 'debian/network-manager.preinst')
-rw-r--r--debian/network-manager.preinst13
1 files changed, 0 insertions, 13 deletions
diff --git a/debian/network-manager.preinst b/debian/network-manager.preinst
index a4c4737b..62aadf1e 100644
--- a/debian/network-manager.preinst
+++ b/debian/network-manager.preinst
@@ -19,19 +19,6 @@ set -e
 
 case "$1" in
     install|upgrade)
-	# When upgrading from a version that was using an Alias= instead of
-	# symlink to mask the LSB initscript, stop NetworkManager before
-	# upgrading if we are running systemd and the NetworkManager.service is
-	# not enabled. This will ensure that NM can properly be stopped and
-	# then started again after the upgrade (See: #734460)
-	if dpkg --compare-versions "$2" lt-nl "0.9.8.8-2~"; then
-	    if [ -d /run/systemd/system ] && \
-	      ! systemctl is-enabled NetworkManager.service > /dev/null 2>&1; then
-	        if [ -x "/etc/init.d/network-manager" ]; then
-	            invoke-rc.d network-manager stop || exit $?
-	        fi
-	    fi
-	fi
 	if dpkg --compare-versions "$2" lt "0.9.8.8-4"; then
 	    if [ -L /etc/systemd/system/network-manager.service ]; then
 	        rm -f /etc/systemd/system/network-manager.service