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 /scripts/vyatta-asn-first-cleanup.pl | |
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 'scripts/vyatta-asn-first-cleanup.pl')
-rwxr-xr-x | scripts/vyatta-asn-first-cleanup.pl | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/scripts/vyatta-asn-first-cleanup.pl b/scripts/vyatta-asn-first-cleanup.pl new file mode 100755 index 00000000..cec82d7c --- /dev/null +++ b/scripts/vyatta-asn-first-cleanup.pl @@ -0,0 +1,34 @@ +#!/usr/bin/perl +# Module: vyatta-asn-first-cleanup.pl +# +# **** License **** +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 2 as +# published by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# A copy of the GNU General Public License is available as +# `/usr/share/common-licenses/GPL' in the Debian GNU/Linux distribution +# or on the World Wide Web at `http://www.gnu.org/copyleft/gpl.html'. +# You can also obtain it by writing to the Free Software Foundation, +# Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, +# MA 02110-1301, USA. +# +# This code was originally developed by Vyatta, Inc. +# Portions created by Vyatta are Copyright (C) 2008 Vyatta, Inc. +# All Rights Reserved. +# +# Author: Michael Larson +# Date: June 2008 +# Description: Removes file at end of asn node visitation +# **** End License **** + +use strict; +use warnings; +use lib "/opt/vyatta/share/perl5/"; + +`rm -f /tmp/protocols-bgp.*`; |