hide Bind button if no IOMMU groups

This commit is contained in:
Skitals
2020-02-23 15:37:33 -05:00
parent fe523a48fa
commit 0bbcbb5c5f
2 changed files with 2 additions and 2 deletions
+2
View File
@@ -38,6 +38,7 @@ case 't1':
exec('lspci',$lspci);
$i = 0;
foreach ($lspci as $line) echo "<tr><td>".$iommu[$i++]."</td><td>$line</td></tr>";
$noiommu = true;
} else {
foreach ($groups as $line) {
if (!$line) continue;
@@ -105,6 +106,7 @@ case 't1':
$append = false;
}
}
echo '<tr><td></td><td></td><td></td><td><input id="applycfg" type="submit" value="Bind selected to VFIO at Boot" onclick="applyCfg();" '.(($noiommu) ? "style=\"display:none\"" : "").'><span id="warning"></span></td></tr>';
}
break;
case 't2':