From cc7d0c96369980eeda4c01fca1035dca4636243a Mon Sep 17 00:00:00 2001 From: Gaurav Sinha Date: Tue, 17 Apr 2012 11:03:10 -0700 Subject: ensure single reload of conntrackd daemon --- templates-cfg/system/conntrack/modules/nfs/enable/node.def | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'templates-cfg/system/conntrack/modules/nfs') diff --git a/templates-cfg/system/conntrack/modules/nfs/enable/node.def b/templates-cfg/system/conntrack/modules/nfs/enable/node.def index b2a2694..130dd7f 100644 --- a/templates-cfg/system/conntrack/modules/nfs/enable/node.def +++ b/templates-cfg/system/conntrack/modules/nfs/enable/node.def @@ -1,3 +1,9 @@ help: enable nfs create:expression: "touch /tmp/vyatta-conntrack-sync" + +end: if [ ${COMMIT_ACTION} = 'DELETE' ]; then + echo "sudo iptables -D VYATTA_CT_HELPER -t raw -p tcp --dport 2049 -j CT --helper nfs" + else + echo "sudo iptables -I VYATTA_CT_HELPER -t raw -p tcp --dport 2049 -j CT --helper nfs" + fi; -- cgit v1.2.3