system() fixed issue virtual detect (linux)
This commit is contained in:
parent
f1665e5d1d
commit
6177b8322e
@ -53,6 +53,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
|
|||||||
|
|
||||||
| Version | Date | Comment |
|
| Version | Date | Comment |
|
||||||
| -------------- | -------------- | -------- |
|
| -------------- | -------------- | -------- |
|
||||||
|
| 5.2.1 | 2020-02-10 | `system()` fixed issue virtual detect (linux) |
|
||||||
| 5.2.0 | 2020-02-10 | `wifiInterfces()` and `wifiConnections()` added |
|
| 5.2.0 | 2020-02-10 | `wifiInterfces()` and `wifiConnections()` added |
|
||||||
| 5.1.2 | 2020-02-08 | fixed node 4 compatibility issue |
|
| 5.1.2 | 2020-02-08 | fixed node 4 compatibility issue |
|
||||||
| 5.1.1 | 2020-02-08 | `baseboard()` added memMax, memSlots, smaller improvements Raspberry |
|
| 5.1.1 | 2020-02-08 | `baseboard()` added memMax, memSlots, smaller improvements Raspberry |
|
||||||
|
|||||||
@ -56,6 +56,11 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<th scope="row">5.2.0</th>
|
||||||
|
<td>2020-02-10</td>
|
||||||
|
<td><span class="code">system()</span> fixed issue virtual detect (linux)</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">5.2.0</th>
|
<th scope="row">5.2.0</th>
|
||||||
<td>2020-02-10</td>
|
<td>2020-02-10</td>
|
||||||
|
|||||||
@ -170,7 +170,7 @@
|
|||||||
<img class="logo" src="assets/logo.png">
|
<img class="logo" src="assets/logo.png">
|
||||||
<div class="title">systeminformation</div>
|
<div class="title">systeminformation</div>
|
||||||
<div class="subtitle"><span id="typed"></span> </div>
|
<div class="subtitle"><span id="typed"></span> </div>
|
||||||
<div class="version">New Version: <span id="version">5.2.0</span></div>
|
<div class="version">New Version: <span id="version">5.2.1</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>
|
<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>
|
||||||
<div class="down">
|
<div class="down">
|
||||||
|
|||||||
@ -109,7 +109,7 @@ function system(callback) {
|
|||||||
}
|
}
|
||||||
if (!result.virtual) {
|
if (!result.virtual) {
|
||||||
try {
|
try {
|
||||||
const disksById = execSync('ls -1 /dev/disk/by-id/').toString();
|
const disksById = execSync('ls -1 /dev/disk/by-id/ 2>/dev/null').toString();
|
||||||
if (disksById.indexOf('_QEMU_') >= 0) {
|
if (disksById.indexOf('_QEMU_') >= 0) {
|
||||||
result.virtual = true;
|
result.virtual = true;
|
||||||
result.virtualHost = 'QEMU';
|
result.virtualHost = 'QEMU';
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user