X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/de0b2b5b417d9d70283458dbc5307fd0f4d1e701..bfb89f27b433ff1de679869e033405158acba8e6:/debian/sipb-xen-iptables.init diff --git a/debian/sipb-xen-iptables.init b/debian/sipb-xen-iptables.init old mode 100644 new mode 100755 index 49f92d3..1c8d933 --- a/debian/sipb-xen-iptables.init +++ b/debian/sipb-xen-iptables.init @@ -17,7 +17,7 @@ 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 @@ -38,6 +38,10 @@ do_start() # 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 }