Commit 2d94aaae authored by Robert Ricci's avatar Robert Ricci

Ick. For things to work on a Stargate, we have to reboot the stargate

after we flash the mote.

We can probably make this work (I hope), but this hack will have to
do for now.
parent de5e555c
......@@ -309,6 +309,15 @@ MOTE: foreach my $mote (@motes) {
$errors++;
warn "Failed to upload code to $mote";
}
# XXX - We have to reboot stargates after loading the mote. Disgusting,
# there should be some better way
if ($upload_method eq "ssh") {
if (system("$SSHTB -host $host shutdown -r now")) {
$errors++;
warn "Failed to upload code to $mote";
}
}
}
if ($errors) {
......
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