forked from extern/shorewall_code
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 [ -d /sys/module/ ]; then
|
||||||
if ! list_search $modulename $DONT_LOAD; then
|
if ! list_search $modulename $DONT_LOAD; then
|
||||||
if [ ! -d /sys/module/$modulename ]; then
|
if [ ! -f /sys/module/$modulename ]; then
|
||||||
shift
|
shift
|
||||||
|
|
||||||
for suffix in $MODULE_SUFFIX ; do
|
for suffix in $MODULE_SUFFIX ; do
|
||||||
|
Loading…
Reference in New Issue
Block a user