[Pkg-sysvinit-commits] r1645 - sysvinit/trunk/debian

Petter Reinholdtsen pere at alioth.debian.org
Wed Aug 26 21:21:27 UTC 2009


Author: pere
Date: 2009-08-26 21:21:27 +0000 (Wed, 26 Aug 2009)
New Revision: 1645

Modified:
   sysvinit/trunk/debian/sysv-rc.postrm
Log:
Only replace update-rc.d and invoke-rc.d during removal if no other package have been unpacked yet to take their place.

Modified: sysvinit/trunk/debian/sysv-rc.postrm
===================================================================
--- sysvinit/trunk/debian/sysv-rc.postrm	2009-08-26 19:51:02 UTC (rev 1644)
+++ sysvinit/trunk/debian/sysv-rc.postrm	2009-08-26 21:21:27 UTC (rev 1645)
@@ -4,7 +4,7 @@
 #
 
 set -e
- 
+
 case "$1" in
 	remove) : ;;
 	purge)
@@ -19,8 +19,12 @@
 
 umask 022
 
-ln -sf /usr/share/sysvinit/update-rc.d /usr/sbin/update-rc.d
-ln -sf /usr/share/sysvinit/update-rc.d /usr/sbin/invoke-rc.d
+if [ ! -e /usr/sbin/update-rc.d ] ; then
+    ln -sf /usr/share/sysvinit/update-rc.d /usr/sbin/update-rc.d
+fi
+if [ ! -e /usr/sbin/invoke-rc.d ] ; then
+    ln -sf /usr/share/sysvinit/update-rc.d /usr/sbin/invoke-rc.d
+fi
 
 # Remove files generated by insserv
 rm -f /etc/init.d/.depend.boot




More information about the Pkg-sysvinit-commits mailing list