From a689b2a4d10714aaf920dad3e3705d07aa0fe9f8 Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Wed, 9 Jan 2008 13:11:32 -0800 Subject: let config mode inhert vtysh() --- etc/bash_completion.d/10vyatta-op | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'etc') diff --git a/etc/bash_completion.d/10vyatta-op b/etc/bash_completion.d/10vyatta-op index 3d144a6..c61a3c5 100644 --- a/etc/bash_completion.d/10vyatta-op +++ b/etc/bash_completion.d/10vyatta-op @@ -396,6 +396,17 @@ _vyatta_pipe_completion () return 0 } +vtysh () +{ + if [ -S /var/run/vyatta/quagga/zebra.vty ] ; then + vyatta-vtysh "$@" + elif [ ! -S /var/run/quagga/zebra.vty ] ; then + /usr/bin/vtysh "$@" + else + echo "Can't connect with zebra daemon" + fi +} + # don't initialize if we are in configure mode if [ "$_OFR_CONFIGURE" == "ok" ]; then return 0 @@ -411,17 +422,6 @@ unset nullglob_save _vyatta_op_init $@ -vtysh () -{ - if [ -S /var/run/vyatta/quagga/zebra.vty ] ; then - vyatta-vtysh "$@" - elif [ ! -S /var/run/quagga/zebra.vty ] ; then - /usr/bin/vtysh "$@" - else - echo "Can't connect with zebra daemon" - fi -} - ### Local Variables: ### mode: shell-script ### End: -- cgit v1.2.3