diff options
Diffstat (limited to 'functions/interpreter/vyatta-cfg-run')
-rw-r--r-- | functions/interpreter/vyatta-cfg-run | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/functions/interpreter/vyatta-cfg-run b/functions/interpreter/vyatta-cfg-run index 263e61a..52b5b08 100644 --- a/functions/interpreter/vyatta-cfg-run +++ b/functions/interpreter/vyatta-cfg-run @@ -313,11 +313,15 @@ vyatta_config_exit () # run op mode commands vyatta_config_run () { - if [ $# == 0 ]; then - echo Incomplete command - return 1 - fi - /opt/vyatta/bin/vyatta-op-cmd-wrapper "$@" + if [ $# == 0 ]; then + echo -e "\n Incomplete command: run\n" + return 1 + fi + if [[ "set" =~ "$1" ]]; then + _vyatta_op_run "$@" + else + /opt/vyatta/bin/vyatta-op-cmd-wrapper "$@" + fi } ### End Top level command wrappers ### |