blob: 5c8748ec765b2703e260772871a0eb440f39a2df [file] [log] [blame] [edit]
#!/bin/sh
set -e
# make sure wait and wait-interval options are accepted
clean_tempfile()
{
if [ -n "${tmpfile}" ]; then
rm -f "${tmpfile}"
fi
}
trap clean_tempfile EXIT
tmpfile=$(mktemp) || exit 1
$XT_MULTI iptables-save -f $tmpfile
$XT_MULTI iptables-restore $tmpfile
$XT_MULTI iptables-restore -w 5 $tmpfile
$XT_MULTI iptables-restore -w 5 -W 1 $tmpfile