From 81dc1cbd4626827284d0a8952a5365edac654ddb Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Wed, 31 Oct 2007 13:46:20 -0700 Subject: preserve op mode functions in config mode (for "run" command). --- etc/bash_completion.d/10vyatta-op | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'etc/bash_completion.d/10vyatta-op') 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: -- cgit v1.2.3