summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKim <kim.sidney@gmail.com>2018-10-18 15:26:22 +0200
committerGitHub <noreply@github.com>2018-10-18 15:26:22 +0200
commit8380177fdcf045a9a9fcca0cb9233cf9e9cd4eb0 (patch)
tree6a9562110978063ab8c3ab995e156a76252b561b /scripts
parentbdc9387450ff27981c7400b7f40b25275dbaa7cf (diff)
downloadvyatta-cfg-8380177fdcf045a9a9fcca0cb9233cf9e9cd4eb0.tar.gz
vyatta-cfg-8380177fdcf045a9a9fcca0cb9233cf9e9cd4eb0.zip
Create the status file at the correct moment.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/vyatta-boot-config-loader6
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