make absence of pkg_scripts non silent, after nits from theo and halex.
authorespie <espie@openbsd.org>
Thu, 26 Dec 2013 18:05:31 +0000 (18:05 +0000)
committerespie <espie@openbsd.org>
Thu, 26 Dec 2013 18:05:31 +0000 (18:05 +0000)
okay rpe@, kirby@

etc/rc

diff --git a/etc/rc b/etc/rc
index 348c8d6..4a9466d 100644 (file)
--- a/etc/rc
+++ b/etc/rc
@@ -1,4 +1,4 @@
-#      $OpenBSD: rc,v 1.409 2013/12/17 09:19:45 halex Exp $
+#      $OpenBSD: rc,v 1.410 2013/12/26 18:05:31 espie Exp $
 
 # System startup script run by init on autoboot
 # or after single-user.
@@ -511,7 +511,11 @@ rm -f /etc/rc.firsttime.run
 if [ -n "${pkg_scripts}" ]; then
        echo -n 'starting package daemons:'
        for _r in $pkg_scripts; do
-               [ -x /etc/rc.d/${_r} ] && start_daemon ${_r}
+               if [ -x /etc/rc.d/${_r} ]; then
+                       start_daemon ${_r}
+               else
+                       echo -n " ${_r}(absent)"
+               fi
        done
        echo '.'
 fi