diff options
Diffstat (limited to 'scripts/vyatta-boot-config-loader')
-rwxr-xr-x | scripts/vyatta-boot-config-loader | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/scripts/vyatta-boot-config-loader b/scripts/vyatta-boot-config-loader index f70d88c..aead348 100755 --- a/scripts/vyatta-boot-config-loader +++ b/scripts/vyatta-boot-config-loader @@ -48,15 +48,11 @@ umask 0002 # do commit trace '-- begin commit' ret=0 - echo $ret > /tmp/vyos-config-status - sync export COMMIT_VIA=boot-config-loader if ! do_commit ; then do_log err 'Commit failed at boot.' trace '-- commit failed' ret=1 - echo $ret > /tmp/vyos-config-status - sync else trace '-- commit succeeded' fi @@ -69,6 +65,8 @@ umask 0002 trace '-- teardown succeeded' fi trace '-- exiting' + echo $ret > /tmp/vyos-config-status + sync exit $ret ) </dev/null >>$CLOG 2>&1 |