mirror of
https://github.com/unraid/webgui.git
synced 2026-05-04 00:39:32 -05:00
hide Bind button if no IOMMU groups
This commit is contained in:
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user