diff options
author | dougb <dougb@FreeBSD.org> | 2005-12-10 20:19:08 +0000 |
---|---|---|
committer | dougb <dougb@FreeBSD.org> | 2005-12-10 20:19:08 +0000 |
commit | 18ad8e36cd3d532baad01a00fd3b5879f273cbd5 (patch) | |
tree | a4563708dd25e95b77270cff6c6e831fe99a4602 /etc/rc.subr | |
parent | e948569c6b9b9180ded71a69c2fc4a0dc4438e30 (diff) | |
download | FreeBSD-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/rc.subr')
-rw-r--r-- | etc/rc.subr | 2 |
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 |