summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTom Grennan <tgrennan@vyatta.com>2008-01-03 18:17:05 -0800
committerTom Grennan <tgrennan@vyatta.com>2008-01-03 18:17:05 -0800
commitb1994cca7ed2d9db8b6006a7d9ae26f7fcbf44d5 (patch)
tree2dd80b3d900efcd64d607457ab24da5484960cbd /scripts
parent696c9d7eac6609a469f1cac41d0c653c69a6dff7 (diff)
downloadvyatta-cfg-quagga-b1994cca7ed2d9db8b6006a7d9ae26f7fcbf44d5.tar.gz
vyatta-cfg-quagga-b1994cca7ed2d9db8b6006a7d9ae26f7fcbf44d5.zip
work w/ either quagga (debian) or vyatta-quagga packages
Diffstat (limited to 'scripts')
-rw-r--r--scripts/vyatta-vtysh.pl9
1 files changed, 8 insertions, 1 deletions
diff --git a/scripts/vyatta-vtysh.pl b/scripts/vyatta-vtysh.pl
index 3c291a34..c1101b6d 100644
--- a/scripts/vyatta-vtysh.pl
+++ b/scripts/vyatta-vtysh.pl
@@ -30,7 +30,14 @@ use warnings;
use strict;
use POSIX;
-my $vtysh = '/usr/bin/vtysh';
+my $vtysh;
+
+if ( -x '/usr/bin/vyatta-vtysh' && -S '/var/run/vyatta/quagga/zebra.vty' ) {
+ $vtysh = '/usr/bin/vyatta-vtysh';
+} else {
+ $vtysh = '/usr/bin/vtysh';
+}
+
my $logfile = '/tmp/vtysh.log';
my $ignore_error = 0;