forked from extern/shorewall_code
Be sure that ${VARDIR} exists before creating .modulesdir
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5293 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
b4477f2d32
commit
7bbb491503
@ -267,6 +267,7 @@ load_kernel_modules()
|
||||
MODULES=$(lsmod | cut -d ' ' -f1)
|
||||
progress_message "Loading Modules..."
|
||||
. $modules
|
||||
[ -d ${VARDIR} ] || mkdir -p ${VARDIR}
|
||||
echo MODULESDIR="$MODULESDIR" > ${VARDIR}/.modulesdir
|
||||
cp -f $modules ${VARDIR}/.modules
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user