mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-22 13:39:06 +01:00
Correct DONT_LOAD
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
ab1fac3fc6
commit
8fe6425690
@ -226,26 +226,28 @@ loadmodule() # $1 = module name, $2 - * arguments
|
|||||||
local suffix
|
local suffix
|
||||||
|
|
||||||
if [ -d /sys/module/ ]; then
|
if [ -d /sys/module/ ]; then
|
||||||
if [ ! -d /sys/module/$modulename ]; then
|
if ! list_search $modulename $DONT_LOAD; then
|
||||||
shift
|
if [ ! -d /sys/module/$modulename ]; then
|
||||||
|
shift
|
||||||
|
|
||||||
for suffix in $MODULE_SUFFIX ; do
|
for suffix in $MODULE_SUFFIX ; do
|
||||||
for directory in $moduledirectories; do
|
for directory in $moduledirectories; do
|
||||||
modulefile=$directory/${modulename}.${suffix}
|
modulefile=$directory/${modulename}.${suffix}
|
||||||
|
|
||||||
if [ -f $modulefile ]; then
|
if [ -f $modulefile ]; then
|
||||||
case $moduleloader in
|
case $moduleloader in
|
||||||
insmod)
|
insmod)
|
||||||
insmod $modulefile $*
|
insmod $modulefile $*
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
modprobe $modulename $*
|
modprobe $modulename $*
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
break 2
|
break 2
|
||||||
fi
|
fi
|
||||||
|
done
|
||||||
done
|
done
|
||||||
done
|
fi
|
||||||
fi
|
fi
|
||||||
elif ! list_search $modulename $DONT_LOAD $MODULES; then
|
elif ! list_search $modulename $DONT_LOAD $MODULES; then
|
||||||
shift
|
shift
|
||||||
|
@ -248,26 +248,28 @@ loadmodule() # $1 = module name, $2 - * arguments
|
|||||||
local suffix
|
local suffix
|
||||||
|
|
||||||
if [ -d /sys/module/ ]; then
|
if [ -d /sys/module/ ]; then
|
||||||
if [ ! -d /sys/module/$modulename ]; then
|
if ! list_search $modulename $DONT_LOAD; then
|
||||||
shift
|
if [ ! -d /sys/module/$modulename ]; then
|
||||||
|
shift
|
||||||
|
|
||||||
for suffix in $MODULE_SUFFIX ; do
|
for suffix in $MODULE_SUFFIX ; do
|
||||||
for directory in $moduledirectories; do
|
for directory in $moduledirectories; do
|
||||||
modulefile=$directory/${modulename}.${suffix}
|
modulefile=$directory/${modulename}.${suffix}
|
||||||
|
|
||||||
if [ -f $modulefile ]; then
|
if [ -f $modulefile ]; then
|
||||||
case $moduleloader in
|
case $moduleloader in
|
||||||
insmod)
|
insmod)
|
||||||
insmod $modulefile $*
|
insmod $modulefile $*
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
modprobe $modulename $*
|
modprobe $modulename $*
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
break 2
|
break 2
|
||||||
fi
|
fi
|
||||||
|
done
|
||||||
done
|
done
|
||||||
done
|
fi
|
||||||
fi
|
fi
|
||||||
elif ! list_search $modulename $MODULES $DONT_LOAD ; then
|
elif ! list_search $modulename $MODULES $DONT_LOAD ; then
|
||||||
shift
|
shift
|
||||||
|
Loading…
Reference in New Issue
Block a user