Tweak modules file patch

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@4998 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2006-11-24 15:56:05 +00:00
parent aa4fb4ff11
commit e9b03aa65b

View File

@ -5134,10 +5134,10 @@ __EOF__
save_progress_message "Initializing..."
if [ -n "$EXPORT" -a -n "$SHOREWALL_DIR" ]; then
f=$SHOREWALL_DIR/modules
if [ -n "$EXPORT" ]; then
f=$(find_file modules)
if [ -f $f ]; then
if [ "$f" != ${SHAREDIR}/modules -a -f $f ]; then
save_command 'echo MODULESDIR="$MODULESDIR" > ${VARDIR}/.modulesdir'
save_command "cat > \${VARDIR}/.modules $LEFTSHIFT EOF"
grep loadmodule $f | sed 's/^\s*//' >&3