Pretty up restore base file

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@1358 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2004-05-24 21:38:29 +00:00
parent c49e9deeb2
commit 448c3ba609

View File

@ -5496,7 +5496,9 @@ define_firewall() # $1 = Command (Start or Restart)
[ -d /var/lib/shorewall ] || mkdir -p /var/lib/shorewall
echo '#bin/sh' > /var/lib/shorewall/restore-$$
save_command "# Restore base file generated $(date)"
save_command "#"
save_command "# Restore base file generated by Shorewall $version - $(date)"
save_command "#"
save_command ". /usr/share/shorewall/functions"
save_command "MODULESDIR=\"$MODULESDIR\""
@ -5558,7 +5560,7 @@ define_firewall() # $1 = Command (Start or Restart)
save_command 'iptables-restore << __EOF__'
# 'shorewall save' appends the iptables-save output and 'EOF'
# 'shorewall save' appends the iptables-save output and '__EOF__'
mv -f /var/lib/shorewall/restore-$$ /var/lib/shorewall/restore-base