mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-26 17:43:15 +01:00
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:
parent
090f19f02a
commit
6293545800
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user