diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2007-10-31 13:46:20 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2007-10-31 13:46:20 -0700 |
commit | 81dc1cbd4626827284d0a8952a5365edac654ddb (patch) | |
tree | 078cf33a849d2c7fecce0ca15da833a35e1dc7cd /etc | |
parent | 308c794bf87e5ca4a9d65b4894b0913b675650cd (diff) | |
download | vyatta-op-81dc1cbd4626827284d0a8952a5365edac654ddb.tar.gz vyatta-op-81dc1cbd4626827284d0a8952a5365edac654ddb.zip |
preserve op mode functions in config mode (for "run" command).
Diffstat (limited to 'etc')
-rw-r--r-- | etc/bash_completion.d/10vyatta-op | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/etc/bash_completion.d/10vyatta-op b/etc/bash_completion.d/10vyatta-op index 3052fa9..cf40e59 100644 --- a/etc/bash_completion.d/10vyatta-op +++ b/etc/bash_completion.d/10vyatta-op @@ -28,11 +28,6 @@ test -f /etc/default/vyatta && \ test ! -d "$vyatta_op_templates" && \ return 0 -# don't do this if we are going into configure mode -if [ "$_OFR_CONFIGURE" == "ok" ]; then - return 0 -fi - declare _vyatta_op_last_comp # $1: label @@ -219,6 +214,11 @@ _vyatta_op_run () eval $restore_shopts } +# don't initialize if we are in configure mode +if [ "$_OFR_CONFIGURE" == "ok" ]; then + return 0 +fi + _vyatta_op_init $@ ### Local Variables: |