Commit 3d39123f authored by Leigh B. Stoller's avatar Leigh B. Stoller

Minor fix. Must inform_reboot first. At one time this seemed like a

good thing to do, but no longer does. Anyway, this fixes some problems.
parent a33c4153
......@@ -18,6 +18,22 @@ delete @ENV{'IFS', 'CDPATH', 'ENV', 'BASH_ENV'};
# Turn off line buffering on output
$| = 1;
#
# Check to see if hostname actually set yet. The dhclient exit hook gets
# invoked no matter what, and typically the first or second DHCP fails,
# and then this script runs tmcc, which fails and prints an annoying
# warning.
#
my $curname = `hostname -s`;
if (! ($curname =~ /.+/)) {
exit 0;
}
#
# Inform the master that we have rebooted. THIS MUST BE DONE!
#
inform_reboot();
#
# Check allocation. Exit now if not allocated.
#
......
......@@ -32,6 +32,11 @@ if (@ARGV) {
}
}
#
# Inform the master that we have rebooted. THIS MUST BE DONE!
#
inform_reboot();
#
# Check allocation. Exit now if not allocated.
#
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment