summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2008-01-09 13:11:32 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2008-01-09 13:11:32 -0800
commita689b2a4d10714aaf920dad3e3705d07aa0fe9f8 (patch)
treec6b75aa8c5db274d6c35718b6e98958b893b61ea /etc
parent645f4c520a8d1547639bce6086a2268132bf8be7 (diff)
downloadvyatta-op-a689b2a4d10714aaf920dad3e3705d07aa0fe9f8.tar.gz
vyatta-op-a689b2a4d10714aaf920dad3e3705d07aa0fe9f8.zip
let config mode inhert vtysh()
Diffstat (limited to 'etc')
-rw-r--r--etc/bash_completion.d/10vyatta-op22
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: