summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMichael Larson <slioch@slioch.vyatta.com>2010-06-21 17:29:10 -0700
committerMichael Larson <slioch@slioch.vyatta.com>2010-06-21 17:29:10 -0700
commitd56124bb5442aeff962b73e8d2f128dd170936ed (patch)
tree0ceb881f07e7b8d72625e76757830538e90e929b /scripts
parent1c8c601571dc5259124cff6b3c6a91c3ac99f496 (diff)
downloadvyatta-cfg-d56124bb5442aeff962b73e8d2f128dd170936ed.tar.gz
vyatta-cfg-d56124bb5442aeff962b73e8d2f128dd170936ed.zip
fix for bug 5716
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/vyatta-config-loader.pl9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/vyatta-config-loader.pl b/scripts/vyatta-config-loader.pl
index a03a0e4..809c5dd 100755
--- a/scripts/vyatta-config-loader.pl
+++ b/scripts/vyatta-config-loader.pl
@@ -112,6 +112,14 @@ foreach (@all_nodes) {
}
}
+$ret = system("$commit_cmd");
+if ($ret >> 8) {
+ print OLDOUT "Commit failed at boot\n";
+ print WARN "Commit failed at boot\n";
+ system("$cleanup_cmd");
+ # exit normally after cleanup (or should we exit with error?)
+}
+
# Now deactivate these nodes
for (@deactivate_nodes) {
my $cmd = "$CWRAPPER deactivate " . $_;
@@ -126,6 +134,7 @@ if ($ret >> 8) {
# exit normally after cleanup (or should we exit with error?)
}
+
# really clean up
system("$CWRAPPER end");
restore_fds();