Skip to content
Snippets Groups Projects
Commit 2d94aaae authored by Robert Ricci's avatar Robert Ricci
Browse files

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
No related branches found
No related tags found
No related merge requests found
...@@ -309,6 +309,15 @@ MOTE: foreach my $mote (@motes) { ...@@ -309,6 +309,15 @@ MOTE: foreach my $mote (@motes) {
$errors++; $errors++;
warn "Failed to upload code to $mote"; 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) { if ($errors) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment