From 2e98d4375b434a2b195f71e145061bd7de56fdf7 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Mon, 21 Aug 2017 10:27:29 -0700 Subject: [PATCH] Correct check for module already loaded Signed-off-by: Tom Eastep --- Shorewall-core/lib.common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall-core/lib.common b/Shorewall-core/lib.common index 8570b1247..5ec4ba812 100644 --- a/Shorewall-core/lib.common +++ b/Shorewall-core/lib.common @@ -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