Browse Source

Forgot to commit that part yesterday, spotted by sthen@

OPENBSD_5_0
ajacoutot 13 years ago
parent
commit
6127eee214
2 changed files with 9 additions and 9 deletions
  1. +7
    -7
      src/etc/rc
  2. +2
    -2
      src/etc/rc.conf

+ 7
- 7
src/etc/rc View File

@ -1,4 +1,4 @@
# $OpenBSD: rc,v 1.379 2011/07/08 09:48:18 deraadt Exp $
# $OpenBSD: rc,v 1.380 2011/07/08 16:20:13 ajacoutot Exp $
# System startup script run by init on autoboot # System startup script run by init on autoboot
# or after single-user. # or after single-user.
@ -237,11 +237,11 @@ if [ X"$1" = X"shutdown" ]; then
dd if=/dev/arandom of=/var/db/host.random bs=65536 count=1 >/dev/null 2>&1 dd if=/dev/arandom of=/var/db/host.random bs=65536 count=1 >/dev/null 2>&1
chmod 600 /var/db/host.random >/dev/null 2>&1 chmod 600 /var/db/host.random >/dev/null 2>&1
local _c=$? local _c=$?
if [ ${_c} -eq 0 -a -n "${rc_scripts}" ]; then
if [ ${_c} -eq 0 -a -n "${pkg_scripts}" ]; then
echo -n 'stopping package daemons:' echo -n 'stopping package daemons:'
while [ -n "${rc_scripts}" ]; do
_r=${rc_scripts##* }
rc_scripts=${rc_scripts%%*( )${_r}}
while [ -n "${pkg_scripts}" ]; do
_r=${pkg_scripts##* }
pkg_scripts=${pkg_scripts%%*( )${_r}}
[ -x /etc/rc.d/${_r} ] && /etc/rc.d/${_r} stop [ -x /etc/rc.d/${_r} ] && /etc/rc.d/${_r} stop
done done
echo '.' echo '.'
@ -549,9 +549,9 @@ fi
rm -f /etc/rc.firsttime.run rm -f /etc/rc.firsttime.run
# Run rc.d(8) scripts from packages # Run rc.d(8) scripts from packages
if [ -n "${rc_scripts}" ]; then
if [ -n "${pkg_scripts}" ]; then
echo -n 'starting package daemons:' echo -n 'starting package daemons:'
for _r in $rc_scripts; do
for _r in $pkg_scripts; do
[ -x /etc/rc.d/${_r} ] && start_daemon ${_r} [ -x /etc/rc.d/${_r} ] && start_daemon ${_r}
done done
echo '.' echo '.'


+ 2
- 2
src/etc/rc.conf View File

@ -1,6 +1,6 @@
#!/bin/sh - #!/bin/sh -
# #
# $OpenBSD: rc.conf,v 1.151 2011/07/08 04:54:12 robert Exp $
# $OpenBSD: rc.conf,v 1.152 2011/07/08 16:20:13 ajacoutot Exp $
# set these to "NO" to turn them off. otherwise, they're used as flags # set these to "NO" to turn them off. otherwise, they're used as flags
ldpd_flags=NO # for normal use: "" ldpd_flags=NO # for normal use: ""
@ -112,7 +112,7 @@ shlib_dirs= # extra directories for ldconfig, separated
# rc.d(8) packages scripts # rc.d(8) packages scripts
# started in the specified order and stopped in reverse order # started in the specified order and stopped in reverse order
rc_scripts=
pkg_scripts=
local_rcconf="/etc/rc.conf.local" local_rcconf="/etc/rc.conf.local"


Loading…
Cancel
Save