mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-25 12:13:29 +02:00
Include params file on restore
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@1582 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
bd7c33e967
commit
d7116bf2df
@ -54,3 +54,5 @@ Changes since 2.0.3
|
|||||||
25) Allow distinct input and output IPSEC parameters.
|
25) Allow distinct input and output IPSEC parameters.
|
||||||
|
|
||||||
26) Allow source port remapping in /etc/shorewall/masq.
|
26) Allow source port remapping in /etc/shorewall/masq.
|
||||||
|
|
||||||
|
27) Include params file on 'restore'
|
||||||
|
@ -6098,6 +6098,12 @@ define_firewall() # $1 = Command (Start or Restart)
|
|||||||
save_command "#"
|
save_command "#"
|
||||||
save_command ". /usr/share/shorewall/functions"
|
save_command ". /usr/share/shorewall/functions"
|
||||||
|
|
||||||
|
f=$(find_file params)
|
||||||
|
|
||||||
|
[ -f $f ] && \
|
||||||
|
save_command ". $f"
|
||||||
|
|
||||||
|
save_command "#"
|
||||||
save_command "MODULESDIR=\"$MODULESDIR\""
|
save_command "MODULESDIR=\"$MODULESDIR\""
|
||||||
save_command "MODULE_SUFFIX=\"$MODULE_SUFFIX\""
|
save_command "MODULE_SUFFIX=\"$MODULE_SUFFIX\""
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user