summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorroot <root@vyatta-build.(none)>2010-10-01 09:54:43 -0700
committerroot <root@vyatta-build.(none)>2010-10-01 09:54:43 -0700
commit00694d6b4c6fdad70401f6fce86d30e85b91f1ec (patch)
tree7a40dcd7d71ecf4187ee15fecc3d8ceaddd435c5 /scripts
parent9f867c092263bfa598aa6de309fbfaa4f16336f4 (diff)
downloadvyatta-cfg-00694d6b4c6fdad70401f6fce86d30e85b91f1ec.tar.gz
vyatta-cfg-00694d6b4c6fdad70401f6fce86d30e85b91f1ec.zip
add commit wrapper hook that allows errors with location to be written to stdout.
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 2d22235..6eeff99 100755
--- a/scripts/vyatta-cfg-cmd-wrapper
+++ b/scripts/vyatta-cfg-cmd-wrapper
@@ -85,6 +85,10 @@ case "$1" in
/opt/vyatta/sbin/my_commit -e -d >> /tmp/bar
RET_STATUS=$?
;;
+ commit_with_error)
+ /opt/vyatta/sbin/my_commit -e
+ RET_STATUS=$?
+ ;;
save)
/opt/vyatta/sbin/vyatta-save-config.pl "${@:2}"
RET_STATUS=$?