diff options
Diffstat (limited to 'etc/bash_completion.d')
-rw-r--r-- | etc/bash_completion.d/10vyatta-op | 22 |
1 files changed, 11 insertions, 11 deletions
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: |