Bring forward ipsets restoration fix

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@4908 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2006-11-18 23:48:56 +00:00
parent bba2e84ae9
commit c5b8f312dc

View File

@ -5232,16 +5232,19 @@ __EOF__
setcontinue OUTPUT
fi
f=$(find_file ipsets)
indent >&3 << __EOF__
if [ -f $f ]; then
progress_message2 "Processing $f ..."
save_progress_message "Restoring IPSETS..."
save_command "ipset -U :all: :all:"
save_command "ipset -F"
save_command "ipset -X"
save_command "ipset -R < $f"
fi
f=\$(find_file ipsets)
if [ -f \$f ]; then
progress_message2 "Restoring IPSETS..."
ipset -U :all: :all:
ipset -F
ipset -X
ipset -R < \$f
fi
__EOF__
append_file continue