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

Petter Reinholdtsen pere at alioth.debian.org
Sun Aug 23 20:36:56 UTC 2009


Author: pere
Date: 2009-08-23 20:36:55 +0000 (Sun, 23 Aug 2009)
New Revision: 1629

Modified:
   sysvinit/trunk/debian/initscripts.postinst
Log:
Mimic debhelper code when calling update-rc.d, throwing away messages and exit on error.

Modified: sysvinit/trunk/debian/initscripts.postinst
===================================================================
--- sysvinit/trunk/debian/initscripts.postinst	2009-08-23 20:28:55 UTC (rev 1628)
+++ sysvinit/trunk/debian/initscripts.postinst	2009-08-23 20:36:55 UTC (rev 1629)
@@ -70,37 +70,37 @@
 #
 # Links in runlevel S
 #
-update-rc.d mountkernfs.sh         start 2 S .
-update-rc.d hostname.sh            start 2 S .
-update-rc.d mountdevsubfs.sh       start 4 S .
-update-rc.d bootlogd               start 5 S .
-update-rc.d checkroot.sh           start 10 S .
-update-rc.d mtab.sh                start 12 S .
-update-rc.d checkfs.sh             start 30 S .
-update-rc.d mountall.sh            start 35 S .
-update-rc.d mountall-bootclean.sh  start 36 S .
-update-rc.d mountoverflowtmp       start 37 S .
-update-rc.d mountnfs.sh            start 45 S .
-update-rc.d mountnfs-bootclean.sh  start 46 S .
-update-rc.d bootmisc.sh            start 55 S .
-update-rc.d urandom                start 55 S . start 30 0 6 .
+update-rc.d mountkernfs.sh         start 2 S . >/dev/null || exit $?
+update-rc.d hostname.sh            start 2 S . >/dev/null || exit $?
+update-rc.d mountdevsubfs.sh       start 4 S . >/dev/null || exit $?
+update-rc.d bootlogd               start 5 S . >/dev/null || exit $?
+update-rc.d checkroot.sh           start 10 S . >/dev/null || exit $?
+update-rc.d mtab.sh                start 12 S . >/dev/null || exit $?
+update-rc.d checkfs.sh             start 30 S . >/dev/null || exit $?
+update-rc.d mountall.sh            start 35 S . >/dev/null || exit $?
+update-rc.d mountall-bootclean.sh  start 36 S . >/dev/null || exit $?
+update-rc.d mountoverflowtmp       start 37 S . >/dev/null || exit $?
+update-rc.d mountnfs.sh            start 45 S . >/dev/null || exit $?
+update-rc.d mountnfs-bootclean.sh  start 46 S . >/dev/null || exit $?
+update-rc.d bootmisc.sh            start 55 S . >/dev/null || exit $?
+update-rc.d urandom                start 55 S . start 30 0 6 . >/dev/null || exit $?
 #
 # Links in runlevels other than S
 #
-update-rc.d halt                   start 90 0 .
-update-rc.d reboot                 start 90 6 .
-update-rc.d umountroot             start 60 0 6 .
-update-rc.d umountfs               start 40 0 6 .
-update-rc.d umountnfs.sh           start 31 0 6 .
-update-rc.d sendsigs               start 20 0 6 .
+update-rc.d halt                   start 90 0 . >/dev/null || exit $?
+update-rc.d reboot                 start 90 6 . >/dev/null || exit $?
+update-rc.d umountroot             start 60 0 6 . >/dev/null || exit $?
+update-rc.d umountfs               start 40 0 6 . >/dev/null || exit $?
+update-rc.d umountnfs.sh           start 31 0 6 . >/dev/null || exit $?
+update-rc.d sendsigs               start 20 0 6 . >/dev/null || exit $?
 
-update-rc.d killprocs              start 30 1 .
-update-rc.d single                 start 90 1 .
-update-rc.d bootlogs               start 70 1 2 3 4 5 .
-update-rc.d rc.local               start 99 2 3 4 5 .
-update-rc.d rmnologin              start 99 2 3 4 5 .
-update-rc.d stop-bootlogd-single   start 99 S .
-update-rc.d stop-bootlogd          start 99 2 3 4 5 .
+update-rc.d killprocs              start 30 1 . >/dev/null || exit $?
+update-rc.d single                 start 90 1 . >/dev/null || exit $?
+update-rc.d bootlogs               start 70 1 2 3 4 5 . >/dev/null || exit $?
+update-rc.d rc.local               start 99 2 3 4 5 . >/dev/null || exit $?
+update-rc.d rmnologin              start 99 2 3 4 5 . >/dev/null || exit $?
+update-rc.d stop-bootlogd-single   start 99 S . >/dev/null || exit $?
+update-rc.d stop-bootlogd          start 99 2 3 4 5 . >/dev/null || exit $?
 
 #
 # Remove scripts that were left behind by older glibc (<< 2.3.2.ds1-12)




More information about the Pkg-sysvinit-commits mailing list