#!/bin/sh

# lock it
exec 8>"/var/run/just-iptables-restore.pid"
flock -x 8
pid=$$
echo $pid 1>&8

# restore iptables only once at a time
iptables-restore < /etc/firewall.conf
