Fix two issues:
- Check for rc.d directory's existence before traversing it; - Don't output * when rc.d directory is empty. PR: conf/190665 Submitted by: Oleg Ginzburg <olevole olevole ru> (with changes) MFC after: 2 weeks
This commit is contained in:
parent
31241fa778
commit
7627c2446a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=267493
@ -109,7 +109,7 @@ fi
|
||||
if [ -n "$LIST" ]; then
|
||||
for dir in /etc/rc.d $local_startup; do
|
||||
[ -n "$VERBOSE" ] && echo "From ${dir}:"
|
||||
cd $dir && for file in *; do echo $file; done
|
||||
[ -d ${dir} ] && /bin/ls -1 ${dir}
|
||||
done
|
||||
exit 0
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user