PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="Load the sipb-xen iptables rules"
NAME=sipb-xen-iptables
-RULES=/usr/local/share/sipb-xen-iptables/iptables.rules
+RULES=/usr/share/sipb-xen-iptables/iptables.rules
# Read configuration variable file if it is present
[ -r /etc/default/$NAME ] && . /etc/default/$NAME
# 0 if daemon has been started
# 1 if daemon was already running
# 2 if daemon could not be started
+ for i in /usr/share/sipb-xen-iptables/iptables.rules
+ do mako-render $i.mako > $i
+ done
+
/sbin/iptables-restore < $RULES
}