Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/etc PR/46601 - Jim Bernard -- add support for rc_directories
details: https://anonhg.NetBSD.org/src/rev/46abbf3b4f0a
branches: trunk
changeset: 779884:46abbf3b4f0a
user: jnemeth <jnemeth%NetBSD.org@localhost>
date: Mon Jun 25 07:22:45 2012 +0000
description:
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 536fb363df69 -r 46abbf3b4f0a etc/rc.shutdown
--- a/etc/rc.shutdown Mon Jun 25 04:52:23 2012 +0000
+++ b/etc/rc.shutdown Mon Jun 25 07:22:45 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.9 2012/06/25 07:22:45 jnemeth 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