Commit 27c8d3bc authored by David Johnson's avatar David Johnson

Only boot netfpgas if the control script is there...

parent b204efaa
......@@ -161,10 +161,12 @@ foreach my $subnode (keys(%subnodelist)) {
last SWITCH;
};
/^netfpga$/i && do {
system("netfpgactl $subnode boot");
if ($?) {
print STDERR "$subnode boot failed with $?\n";
}
if (-x "$BINDIR/netfpgactl") {
system("$BINDIR/netfpgactl $subnode boot");
if ($?) {
print STDERR "$subnode boot failed with $?\n";
}
}
last SWITCH;
};
print "Invalid subnode type: $type\n";
......
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