Commit 4007ceef authored by Franco Fichtner's avatar Franco Fichtner

dashboard: remove non-authorative hardware crypto probing

Closes #707
Closes #732

(cherry picked from commit d9ac9c02)
parent ca7e8d56
...@@ -99,31 +99,10 @@ if (file_exists('/usr/sbin/swapinfo')) { ...@@ -99,31 +99,10 @@ if (file_exists('/usr/sbin/swapinfo')) {
} }
} }
## Find out whether there's hardware encryption or not
unset($hwcrypto);
$fd = @fopen('/var/run/dmesg.boot', 'r');
if ($fd) {
while (!feof($fd)) {
$dmesgl = fgets($fd);
if (preg_match("/^hifn.: (.*?),/", $dmesgl, $matches)
or preg_match("/.*(VIA Padlock)/", $dmesgl, $matches)
or preg_match("/^safe.: (\w.*)/", $dmesgl, $matches)
or preg_match("/^ubsec.: (.*?),/", $dmesgl, $matches)
or preg_match("/^padlock.: <(.*?)>,/", $dmesgl, $matches)
or preg_match("/^glxsb.: (.*?),/", $dmesgl, $matches)
or preg_match("/^aesni.: (.*?),/", $dmesgl, $matches)) {
$hwcrypto = $matches[1];
break;
}
}
fclose($fd);
}
##build widget saved list information ##build widget saved list information
if ($config['widgets'] && $config['widgets']['sequence'] != "") { if ($config['widgets'] && $config['widgets']['sequence'] != "") {
$pconfig['sequence'] = $config['widgets']['sequence']; $pconfig['sequence'] = $config['widgets']['sequence'];
$widgetlist = $pconfig['sequence']; $widgetlist = $pconfig['sequence'];
$colpos = array(); $colpos = array();
$savedwidgetfiles = array(); $savedwidgetfiles = array();
......
...@@ -118,13 +118,6 @@ $filesystems = get_mounted_filesystems(); ...@@ -118,13 +118,6 @@ $filesystems = get_mounted_filesystems();
<?php endif; ?> <?php endif; ?>
</td> </td>
</tr> </tr>
<?php if (isset($hwcrypto)) :
?>
<tr>
<td width="25%" class="vncellt"><?=gettext("Hardware crypto");?></td>
<td width="75%" class="listr"><?=htmlspecialchars($hwcrypto);?></td>
</tr>
<?php endif; ?>
<tr> <tr>
<td width="25%" class="vncellt"><?=gettext("Uptime");?></td> <td width="25%" class="vncellt"><?=gettext("Uptime");?></td>
<td width="75%" class="listr" id="uptime"><?= htmlspecialchars(get_uptime()); ?></td> <td width="75%" class="listr" id="uptime"><?= htmlspecialchars(get_uptime()); ?></td>
......
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