summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-07-20 19:26:08 -0500
committerJohn Southworth <john.southworth@vyatta.com>2011-07-20 19:26:08 -0500
commita6563ca684cc5bd775a2d31d27c6130dd1ab628d (patch)
tree0b6d72d28362dfe0202044cd24d5e457b4733c86
parent3365fdb6a3e38ce445cc986d2d9fe11715ee5072 (diff)
downloadvyatta-op-a6563ca684cc5bd775a2d31d27c6130dd1ab628d.tar.gz
vyatta-op-a6563ca684cc5bd775a2d31d27c6130dd1ab628d.zip
Bugfix 7357: change the op mode command wrapper to setup the aliases
-rwxr-xr-xscripts/vyatta-op-cmd-wrapper7
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 "$@"