From aedddae222437fd927c0b94da3622aef58e284fd Mon Sep 17 00:00:00 2001 From: John Southworth Date: Wed, 20 Jul 2011 19:26:08 -0500 Subject: Bugfix 7357: change the op mode command wrapper to setup the aliases (cherry picked from commit a6563ca684cc5bd775a2d31d27c6130dd1ab628d) --- scripts/vyatta-op-cmd-wrapper | 7 ++++--- 1 file 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 "$@" -- cgit v1.2.3