diff options
author | Antoine Jacoutot <ajacoutot@cvs.openbsd.org> | 2011-04-22 06:08:15 +0000 |
---|---|---|
committer | Antoine Jacoutot <ajacoutot@cvs.openbsd.org> | 2011-04-22 06:08:15 +0000 |
commit | 7b596b4b6e787feb3489a464a7874f1ff7d9a87e (patch) | |
tree | a2635632f49f31e4dd34596b91e4b76cfa8039f6 /etc/rc.shutdown | |
parent | fd673519a909627616fe2d945531b71c8e62588e (diff) |
Move the rc.d(8) bits from rc.{local,shutdown} directly into /etc/rc.
By default, rc.{local,shutdown} don't output anything anymore.
original idea from schwarze@
discussed with deraadt@ and no objection from millert@
ok schwarze@ robert@
Diffstat (limited to 'etc/rc.shutdown')
-rw-r--r-- | etc/rc.shutdown | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/etc/rc.shutdown b/etc/rc.shutdown index 2031f69483f..9976eb04e26 100644 --- a/etc/rc.shutdown +++ b/etc/rc.shutdown @@ -1,4 +1,4 @@ -# $OpenBSD: rc.shutdown,v 1.11 2011/03/17 16:43:51 robert Exp $ +# $OpenBSD: rc.shutdown,v 1.12 2011/04/22 06:08:14 ajacoutot Exp $ # # If it exists, this script is run at system-shutdown by reboot(8), # halt(8). If the architecture supports keyboard requested halting, @@ -7,14 +7,4 @@ powerdown=NO # set to YES for powerdown -echo -n 'stopping local daemons:' - -while [ -n "${rc_scripts}" ]; do - _r=${rc_scripts##* } - rc_scripts=${rc_scripts%%*( )${_r}} - [ -x /etc/rc.d/${_r} ] && /etc/rc.d/${_r} stop -done - # Add your local shutdown actions here. - -echo '.' |