Don't reload modules if no directories in exist

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@4546 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2006-09-07 22:30:17 +00:00
parent 090f19f02a
commit 6293545800

View File

@ -192,7 +192,7 @@ reload_kernel_modules() {
[ -d $directory ] && moduledirectories="$moduledirectories $directory"
done
while read command; do
[ -n "$moduledirectories" ] && while read command; do
eval $command
done