Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-6]: src/etc Pull up revision 1.9 (requested by jnemeth in ticket ...



details:   https://anonhg.NetBSD.org/src/rev/284c7b6d0460
branches:  netbsd-6
changeset: 774281:284c7b6d0460
user:      jdc <jdc%NetBSD.org@localhost>
date:      Mon Jul 02 21:20:52 2012 +0000

description:
Pull up revision 1.9 (requested by jnemeth in ticket #375).

PR/46601 - Jim Bernard -- add support for rc_directories

diffstat:

 etc/rc.shutdown |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r f9af5f134157 -r 284c7b6d0460 etc/rc.shutdown
--- a/etc/rc.shutdown   Mon Jul 02 21:17:18 2012 +0000
+++ b/etc/rc.shutdown   Mon Jul 02 21:20:52 2012 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: rc.shutdown,v 1.8 2002/05/19 01:01:33 lukem Exp $
+# $NetBSD: rc.shutdown,v 1.8.60.1 2012/07/02 21:20:52 jdc Exp $
 #
 # rc.shutdown --
 #      Run the scripts in /etc/rc.d with reverse rcorder.
@@ -44,10 +44,12 @@
 fi
 
 
-#      Determine the shutdown order of the /etc/rc.d scripts,
+#      Determine the shutdown order of the rc.d scripts,
 #      and perform the operation
 #
-files=$(rcorder -k shutdown ${rcshutdown_rcorder_flags} /etc/rc.d/*)
+scripts=$(for rcd in ${rc_directories:-/etc/rc.d}; do
+       test -d ${rcd} && echo ${rcd}/*; done)
+files=$(rcorder -k shutdown ${rcshutdown_rcorder_flags} ${scripts})
 
 for _rc_elem in $(reverse_list $files); do
        run_rc_script $_rc_elem stop



Home | Main Index | Thread Index | Old Index