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:
teastep 2004-08-27 01:36:07 +00:00
parent bd7c33e967
commit d7116bf2df
2 changed files with 8 additions and 0 deletions

View File

@ -54,3 +54,5 @@ Changes since 2.0.3
25) Allow distinct input and output IPSEC parameters.
26) Allow source port remapping in /etc/shorewall/masq.
27) Include params file on 'restore'

View File

@ -6098,6 +6098,12 @@ define_firewall() # $1 = Command (Start or Restart)
save_command "#"
save_command ". /usr/share/shorewall/functions"
f=$(find_file params)
[ -f $f ] && \
save_command ". $f"
save_command "#"
save_command "MODULESDIR=\"$MODULESDIR\""
save_command "MODULE_SUFFIX=\"$MODULE_SUFFIX\""