[Pkg-sysvinit-commits] r898 - in sysvinit/trunk/debian: . initscripts

Petter Reinholdtsen pere at costa.debian.org
Sun Sep 10 09:40:10 UTC 2006


Author: pere
Date: 2006-09-10 09:40:10 +0000 (Sun, 10 Sep 2006)
New Revision: 898

Modified:
   sysvinit/trunk/debian/changelog
   sysvinit/trunk/debian/initscripts/postinst
Log:
Change initscripts postinst to use update-rc.d program instead of
shell funciton if insserv is installed.


Modified: sysvinit/trunk/debian/changelog
===================================================================
--- sysvinit/trunk/debian/changelog	2006-09-09 18:16:48 UTC (rev 897)
+++ sysvinit/trunk/debian/changelog	2006-09-10 09:40:10 UTC (rev 898)
@@ -1,3 +1,10 @@
+sysvinit (2.86.ds1-20~1) unstable; urgency=low
+
+  * Change initscripts postinst to use update-rc.d program instead of
+    shell funciton if insserv is installed.
+
+ -- Petter Reinholdtsen <pere at debian.org>  Sun, 10 Sep 2006 11:38:20 +0200
+
 sysvinit (2.86.ds1-19) unstable; urgency=low
 
   * Add new NEWS entry with a better shell fragment for recovering

Modified: sysvinit/trunk/debian/initscripts/postinst
===================================================================
--- sysvinit/trunk/debian/initscripts/postinst	2006-09-09 18:16:48 UTC (rev 897)
+++ sysvinit/trunk/debian/initscripts/postinst	2006-09-10 09:40:10 UTC (rev 898)
@@ -20,8 +20,8 @@
 # Function like update-rc.d but simpler & faster.
 # Usage: updatercd basename start|stop NN runlevel .
 #
-# Heuristic: use the real update-rc.d if file-rc is detected,
-# or if the /etc/rc2.d directory is not present.
+# Heuristic: use the real update-rc.d if file-rc or insserv is
+# detected, or if the /etc/rc2.d directory is not present.
 #
 updatercd() {
 
@@ -30,6 +30,7 @@
 	if \
 		[ -d /usr/share/file-rc/. ] \
 		|| [ -d /usr/lib/file-rc/. ] \
+		|| [ -d /usr/share/insserv/. ] \
 		|| [ ! -d /etc/rc2.d/. ]
 	then
 		# Funniness on next line is because we are running with set -e




More information about the Pkg-sysvinit-commits mailing list