Correct check for module already loaded

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2017-08-21 10:27:29 -07:00
parent 419ff8903b
commit 2e98d4375b
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10

View File

@ -274,7 +274,7 @@ loadmodule() # $1 = module name, $2 - * arguments
if [ -d /sys/module/ ]; then
if ! list_search $modulename $DONT_LOAD; then
if [ ! -d /sys/module/$modulename ]; then
if [ ! -f /sys/module/$modulename ]; then
shift
for suffix in $MODULE_SUFFIX ; do