Browse Source

do not print 'starting local daemons' if rc_scripts is empty

asked by/ok deraadt@, ajacoutot@
OPENBSD_5_0
robert 13 years ago
parent
commit
3be7721071
1 changed files with 9 additions and 7 deletions
  1. +9
    -7
      src/etc/rc.local

+ 9
- 7
src/etc/rc.local View File

@ -1,16 +1,18 @@
# $OpenBSD: rc.local,v 1.42 2011/03/17 16:43:51 robert Exp $
# $OpenBSD: rc.local,v 1.43 2011/04/18 18:08:20 robert Exp $
# Site-specific startup actions, daemons, and other things which
# can be done AFTER your system goes into securemode. For actions
# which should be done BEFORE your system has gone into securemode
# please see /etc/rc.securelevel.
echo -n 'starting local daemons:'
if [ -n "${rc_scripts}" ]; then
echo -n 'starting local daemons:'
for _r in $rc_scripts; do
[ -x /etc/rc.d/${_r} ] && /etc/rc.d/${_r} start
done
for _r in $rc_scripts; do
[ -x /etc/rc.d/${_r} ] && /etc/rc.d/${_r} start
done
# Add your local startup actions here.
echo '.'
fi
echo '.'
# Add your local startup actions here.

Loading…
Cancel
Save