From 00694d6b4c6fdad70401f6fce86d30e85b91f1ec Mon Sep 17 00:00:00 2001 From: root Date: Fri, 1 Oct 2010 09:54:43 -0700 Subject: add commit wrapper hook that allows errors with location to be written to stdout. --- scripts/vyatta-cfg-cmd-wrapper | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts') 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=$? -- cgit v1.2.3