From 3be7721071f6c081dedddcbf824bf2a123f7f2e0 Mon Sep 17 00:00:00 2001 From: robert <> Date: Mon, 18 Apr 2011 18:08:20 +0000 Subject: [PATCH] do not print 'starting local daemons' if rc_scripts is empty asked by/ok deraadt@, ajacoutot@ --- src/etc/rc.local | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/etc/rc.local b/src/etc/rc.local index 27bcec0d..8f13b513 100644 --- a/src/etc/rc.local +++ b/src/etc/rc.local @@ -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.