mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue