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:
teastep 2007-01-25 16:37:05 +00:00
parent b4477f2d32
commit 7bbb491503

View File

@ -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