mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-28 16:39:29 +01:00
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:
parent
aa4fb4ff11
commit
e9b03aa65b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user