summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2009-05-01 11:05:05 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2009-05-01 11:05:05 -0700
commit25a349a53fdb2462e10be4690bb1fb20950ba4b8 (patch)
tree7d3eff54401c6016fdf441042246baa102d452c5 /scripts
parentf1f44affb98c4f66ec22d7ea9d504ca1c9b7ba9b (diff)
downloadvyatta-cfg-25a349a53fdb2462e10be4690bb1fb20950ba4b8.tar.gz
vyatta-cfg-25a349a53fdb2462e10be4690bb1fb20950ba4b8.zip
add "load" support in vyatta-cfg-cmd-wrapper
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/vyatta-cfg-cmd-wrapper4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/vyatta-cfg-cmd-wrapper b/scripts/vyatta-cfg-cmd-wrapper
index 144fc2a..cf10fc5 100755
--- a/scripts/vyatta-cfg-cmd-wrapper
+++ b/scripts/vyatta-cfg-cmd-wrapper
@@ -90,6 +90,10 @@ case "$1" in
/opt/vyatta/sbin/vyatta-save-config.pl "${@:2}"
RET_STATUS=$?
;;
+ load)
+ /opt/vyatta/sbin/vyatta-load-config.pl "${@:2}"
+ RET_STATUS=$?
+ ;;
*)
echo "Invalid command \"$1\" for vyatta-cfg-cmd-wrapper"
RET_STATUS=1