mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-23 06:38:53 +01:00
Correct check for module already loaded
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
419ff8903b
commit
2e98d4375b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user