diff options
author | Michael Larson <slioch@slioch.vyatta.com> | 2010-08-19 17:48:53 -0700 |
---|---|---|
committer | Michael Larson <slioch@slioch.vyatta.com> | 2010-08-19 17:48:53 -0700 |
commit | 63b71c2c9f140897f1597eb3223b50df96adf67a (patch) | |
tree | 17b3539c8ad73f78c4df09338b40e4f7924d45bb /templates | |
parent | a785fe685d9fa0edd813e2a53f1ebbc227ba2c7f (diff) | |
download | vyatta-cfg-quagga-63b71c2c9f140897f1597eb3223b50df96adf67a.tar.gz vyatta-cfg-quagga-63b71c2c9f140897f1597eb3223b50df96adf67a.zip |
larkspur fix for bug 6069.
set first tmp file on first visitation. clean up other files in etc/commit hook.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/protocols/bgp/node.def | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/protocols/bgp/node.def b/templates/protocols/bgp/node.def index 3e9e6b51..44319838 100644 --- a/templates/protocols/bgp/node.def +++ b/templates/protocols/bgp/node.def @@ -7,4 +7,8 @@ val_help: u32:1-4294967294; AS number syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 4294967294 ; \ "AS number must be between 1 and 4294967294" -end: /opt/vyatta/sbin/vyatta-bgp.pl --main +end: +if [ ! -f "/tmp/protocols-bgp.$PPID" ]; then + touch /tmp/protocols-bgp.$PPID; + /opt/vyatta/sbin/vyatta-bgp.pl --main +fi;
\ No newline at end of file |