summaryrefslogtreecommitdiff
path: root/etc/bash_completion.d
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2008-07-01 16:25:48 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2008-07-01 16:25:48 -0700
commit7a93bacf5b49f599ffedd11c10d8d156e2c85111 (patch)
treed766343a5fe93935cc24c964c226b6cc9932f0f3 /etc/bash_completion.d
parentfaf87e1a036da715dabba36d119c0ce3a93c7a9e (diff)
downloadvyatta-op-7a93bacf5b49f599ffedd11c10d8d156e2c85111.tar.gz
vyatta-op-7a93bacf5b49f599ffedd11c10d8d156e2c85111.zip
fix for bug 3414: make op mode functions available in config mode.
Diffstat (limited to 'etc/bash_completion.d')
-rw-r--r--etc/bash_completion.d/10vyatta-op10
1 files changed, 5 insertions, 5 deletions
diff --git a/etc/bash_completion.d/10vyatta-op b/etc/bash_completion.d/10vyatta-op
index fe3163c..4735462 100644
--- a/etc/bash_completion.d/10vyatta-op
+++ b/etc/bash_completion.d/10vyatta-op
@@ -434,11 +434,6 @@ fi
alias vtysh=$_vyatta_vtysh
-# don't initialize if we are in configure mode
-if [ "$_OFR_CONFIGURE" == "ok" ]; then
- return 0
-fi
-
nullglob_save=$( shopt -p nullglob )
shopt -s nullglob
for f in ${vyatta_datadir}/vyatta-op/functions/allowed/* ; do
@@ -447,6 +442,11 @@ done
eval $nullglob_save
unset nullglob_save
+# don't initialize if we are in configure mode
+if [ "$_OFR_CONFIGURE" == "ok" ]; then
+ return 0
+fi
+
_vyatta_op_init $@
### Local Variables: