mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-02 07:56:00 +02: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..."
|
save_progress_message "Initializing..."
|
||||||
|
|
||||||
if [ -n "$EXPORT" -a -n "$SHOREWALL_DIR" ]; then
|
if [ -n "$EXPORT" ]; then
|
||||||
f=$SHOREWALL_DIR/modules
|
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 'echo MODULESDIR="$MODULESDIR" > ${VARDIR}/.modulesdir'
|
||||||
save_command "cat > \${VARDIR}/.modules $LEFTSHIFT EOF"
|
save_command "cat > \${VARDIR}/.modules $LEFTSHIFT EOF"
|
||||||
grep loadmodule $f | sed 's/^\s*//' >&3
|
grep loadmodule $f | sed 's/^\s*//' >&3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user