summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMichael Larson <mike@vyatta.com>2010-11-18 16:45:04 -0800
committerMichael Larson <mike@vyatta.com>2010-11-18 16:45:04 -0800
commitcea49c020969bc157982c56c3962ad5ae99dbc7f (patch)
tree61ad0cd14eb826edf4df46329ce3e75c186ab458 /templates
parent0a463cf993293f52358f5e32d0828a6245033f18 (diff)
downloadvyatta-cfg-quagga-cea49c020969bc157982c56c3962ad5ae99dbc7f.tar.gz
vyatta-cfg-quagga-cea49c020969bc157982c56c3962ad5ae99dbc7f.zip
better solution for mendocino--removes patch from larkspur.
Diffstat (limited to 'templates')
-rw-r--r--templates/protocols/bgp/node.def5
1 files changed, 3 insertions, 2 deletions
diff --git a/templates/protocols/bgp/node.def b/templates/protocols/bgp/node.def
index 44319838..bd7916eb 100644
--- a/templates/protocols/bgp/node.def
+++ b/templates/protocols/bgp/node.def
@@ -8,7 +8,8 @@ syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 4294967294 ; \
"AS number must be between 1 and 4294967294"
end:
-if [ ! -f "/tmp/protocols-bgp.$PPID" ]; then
- touch /tmp/protocols-bgp.$PPID;
+
+if [ "$COMMIT_SIBLING_POSITION" = "FIRST" ] || \
+ [ "$COMMIT_SIBLING_POSITION" = "FIRSTLAST" ] ; then
/opt/vyatta/sbin/vyatta-bgp.pl --main
fi; \ No newline at end of file