diff options
author | John Southworth <john.southworth@vyatta.com> | 2011-07-20 19:26:08 -0500 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2011-07-20 19:28:46 -0500 |
commit | aedddae222437fd927c0b94da3622aef58e284fd (patch) | |
tree | f84ca45b6c927c9052aab4c3068a58be31aad384 /scripts/vyatta-op-cmd-wrapper | |
parent | 76e51ad7b444a00d4c67d1c9f32573518e3424a3 (diff) | |
download | vyatta-op-aedddae222437fd927c0b94da3622aef58e284fd.tar.gz vyatta-op-aedddae222437fd927c0b94da3622aef58e284fd.zip |
Bugfix 7357: change the op mode command wrapper to setup the aliases
(cherry picked from commit a6563ca684cc5bd775a2d31d27c6130dd1ab628d)
Diffstat (limited to 'scripts/vyatta-op-cmd-wrapper')
-rwxr-xr-x | scripts/vyatta-op-cmd-wrapper | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/vyatta-op-cmd-wrapper b/scripts/vyatta-op-cmd-wrapper index 6610afd..05222bc 100755 --- a/scripts/vyatta-op-cmd-wrapper +++ b/scripts/vyatta-op-cmd-wrapper @@ -1,5 +1,6 @@ #!/bin/vbash -l -VYATTA_USER_LEVEL_DIR=/opt/vyatta/etc/shell/level/admin +shopt -s expand_aliases source /etc/default/vyatta -source /etc/bash_completion.d/vyatta-op-run -_vyatta_op_run $@ +source /etc/bash_completion.d/vyatta-op +_vyatta_op_init +_vyatta_op_run "$@" |