osInfo() improved uefi parsing (FreeBSD)

This commit is contained in:
Sebastian Hildebrandt 2022-11-21 11:24:55 +01:00
parent d0cc0254db
commit eccebb1e7f
5 changed files with 12 additions and 4 deletions

View File

@ -82,7 +82,8 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
| Version | Date | Comment |
| ------- | ---------- | --------------------------------------------------------------------------------------------------- |
| 5.14.3 | 2022-11-21 | `graphics()` multi monitor refresh rate (windows) |
| 5.14.4 | 2022-11-21 | `osInfo()` improved uefi parsing (FreeBSD) |
| 5.14.3 | 2022-11-20 | `graphics()` multi monitor refresh rate (windows) |
| 5.14.2 | 2022-11-20 | `osInfo()` improved parsing (FreeBSD) |
| 5.14.1 | 2022-11-20 | `memLayout()` bank descriptor cleanup (linux) |
| 5.14.0 | 2022-11-19 | `blockDevices()` added raid group member (linux) |

View File

@ -57,6 +57,11 @@
</tr>
</thead>
<tbody>
<tr>
<th scope="row">5.14.4</th>
<td>2022-11-21</td>
<td><span class="code">osInfo()</span> improved uefi parsing (FreeBSD)</td>
</tr>
<tr>
<th scope="row">5.14.3</th>
<td>2022-11-20</td>

View File

@ -170,7 +170,7 @@
<img class="logo" src="assets/logo.png" alt="logo">
<div class="title">systeminformation</div>
<div class="subtitle"><span id="typed"></span>&nbsp;</div>
<div class="version">New Version: <span id="version">5.14.3</span></div>
<div class="version">New Version: <span id="version">5.14.4</span></div>
<button class="btn btn-light" onclick="location.href='https://github.com/sebhildebrandt/systeminformation'">View on Github <i class=" fab fa-github"></i></button>
</div>
<div class="down">

View File

@ -46,7 +46,7 @@ function inetChecksite(url, callback) {
let urlSanitized = '';
const s = util.sanitizeShellString(url, true);
for (let i = 0; i <= util.mathMin(s.length, 2000); i++) {
if (!s[i] !== undefined) {
if (s[i] !== undefined) {
s[i].__proto__.toLowerCase = util.stringToLower;
const sl = s[i].toLowerCase();
if (sl && sl[0] && !sl[1] && sl[0].length === 1) {

View File

@ -268,7 +268,9 @@ function osInfo(callback) {
const logofile = util.getValue(lines, 'kern.ostype');
const release = util.getValue(lines, 'kern.osrelease').split('-')[0];
const serial = util.getValue(lines, 'kern.uuid');
const uefi = util.getValue(lines, 'machdep.bootmethod').toLowerCase().indexOf('uefi') >= 0;
const bootmethod = util.getValue(lines, 'machdep.bootmethod');
const uefiConf = stdout.toString().indexOf('<type>efi</type>') >= 0;
const uefi = bootmethod ? bootmethod.toLowerCase().indexOf('uefi') >= 0 : (uefiConf ? uefiConf : null);
result.distro = distro || result.distro;
result.logofile = logofile || result.logofile;
result.release = release || result.release;