uuid() fixed os, hardware uuids (freebsd)

This commit is contained in:
Sebastian Hildebrandt 2025-06-19 08:44:11 +02:00
parent a1fade8ae5
commit 1e3591a417
4 changed files with 10 additions and 4 deletions

View File

@ -90,6 +90,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
| Version | Date | Comment |
| ------- | ---------- | --------------------------------------------------------------------------------------------------- |
| 5.27.4 | 2025-06-19 | `uuid()` fixed os, hardware uuids (freebsd) |
| 5.27.3 | 2025-06-17 | `osInfo()` added macOS Tahoe detection |
| 5.27.2 | 2025-06-16 | `services()` extended matching service names |
| 5.27.1 | 2025-05-24 | `wifiConnections()`, `wifiNetworks()` fix security mode parsing (macOS) |

View File

@ -57,6 +57,11 @@
</tr>
</thead>
<tbody>
<tr>
<th scope="row">5.27.4</th>
<td>2025-06-19</td>
<td><span class="code">uuid()</span> fixed hardware, os (freebsd)</td>
</tr>
<tr>
<th scope="row">5.27.3</th>
<td>2025-06-17</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>
3<div class="version">New Version: <span id="version">5.27.3</span></div>
3<div class="version">New Version: <span id="version">5.27.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">
@ -212,7 +212,7 @@
<div class="title">Downloads last month</div>
</div>
<div class="col-xl-4 col-lg-4 col-md-4 col-12">
<div class="numbers">862</div>
<div class="numbers">863</div>
<div class="title">Dependents</div>
</div>
</div>

View File

@ -1240,8 +1240,8 @@ echo -n "hardware: "; cat /sys/class/dmi/id/product_uuid 2> /dev/null; echo;`;
if (_freebsd || _openbsd || _netbsd) {
exec('sysctl -i kern.hostid kern.hostuuid', function (error, stdout) {
const lines = stdout.toString().split('\n');
result.os = util.getValue(lines, 'kern.hostid', ':').toLowerCase();
result.hardware = util.getValue(lines, 'kern.hostuuid', ':').toLowerCase();
result.hardware = util.getValue(lines, 'kern.hostid', ':').toLowerCase();
result.os = util.getValue(lines, 'kern.hostuuid', ':').toLowerCase();
if (result.os.indexOf('unknown') >= 0) { result.os = ''; }
if (result.hardware.indexOf('unknown') >= 0) { result.hardware = ''; }
if (callback) {