summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authordougb <dougb@FreeBSD.org>2005-12-10 20:19:08 +0000
committerdougb <dougb@FreeBSD.org>2005-12-10 20:19:08 +0000
commit18ad8e36cd3d532baad01a00fd3b5879f273cbd5 (patch)
treea4563708dd25e95b77270cff6c6e831fe99a4602 /etc
parente948569c6b9b9180ded71a69c2fc4a0dc4438e30 (diff)
downloadFreeBSD-src-18ad8e36cd3d532baad01a00fd3b5879f273cbd5.zip
FreeBSD-src-18ad8e36cd3d532baad01a00fd3b5879f273cbd5.tar.gz
Silence a warning about empty directories in all the places it might
occur. Reminded by: yar
Diffstat (limited to 'etc')
-rw-r--r--etc/rc.subr2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.subr b/etc/rc.subr
index 7678480..7c77cc8 100644
--- a/etc/rc.subr
+++ b/etc/rc.subr
@@ -1380,7 +1380,7 @@ find_local_scripts_new () {
local_rc=''
for dir in ${local_startup}; do
if [ -d "${dir}" ]; then
- for file in `grep -l '^# PROVIDE:' ${dir}/*`; do
+ for file in `grep -l '^# PROVIDE:' ${dir}/* 2>/dev/null`; do
case "$file" in
*.sample) ;;
*) if [ -x "$file" ]; then
OpenPOWER on IntegriCloud