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 setcontinue OUTPUT
fi fi
f=$(find_file ipsets) indent >&3 << __EOF__
if [ -f $f ]; then f=\$(find_file ipsets)
progress_message2 "Processing $f ..."
save_progress_message "Restoring IPSETS..." if [ -f \$f ]; then
save_command "ipset -U :all: :all:" progress_message2 "Restoring IPSETS..."
save_command "ipset -F" ipset -U :all: :all:
save_command "ipset -X" ipset -F
save_command "ipset -R < $f" ipset -X
fi ipset -R < \$f
fi
__EOF__
append_file continue append_file continue