about summary refs log tree commit diff
path: root/debian/network-manager.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/network-manager.postinst')
-rw-r--r--debian/network-manager.postinst14
1 files changed, 13 insertions, 1 deletions
diff --git a/debian/network-manager.postinst b/debian/network-manager.postinst
index c7694427..f91886f5 100644
--- a/debian/network-manager.postinst
+++ b/debian/network-manager.postinst
@@ -1,4 +1,7 @@
-#!/bin/sh -e
+#!/bin/sh
+
+set -e
+
 # This script can be called in the following ways:
 #
 # After the package was installed:
@@ -35,6 +38,15 @@ case "$1" in
 		fi
 	fi
 
+	# Update init script priorities
+	if dpkg --compare-versions "$2" lt "0.7.0.99-1"; then
+		for i in 0 1 6 ; do
+			if [ -e /etc/rc$i.d/K14network-manager ]; then
+				mv /etc/rc$i.d/K14network-manager /etc/rc$i.d/K88network-manager
+			fi
+		done
+	fi
+
 	;;
     
     abort-upgrade|abort-deconfigure|abort-remove)