system() added raspberry pi 4 detection
This commit is contained in:
parent
6038092a25
commit
5f17ea88ca
@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page.
|
|||||||
|
|
||||||
| Version | Date | Comment |
|
| Version | Date | Comment |
|
||||||
| -------------- | -------------- | -------- |
|
| -------------- | -------------- | -------- |
|
||||||
|
| 4.12.2 | 2019-06-24 | `system()` added Raspberry PI 4 detection |
|
||||||
| 4.12.1 | 2019-06-24 | `networkInterface()` virtual interfaces macos, `networkInterfaceDefault()` |
|
| 4.12.1 | 2019-06-24 | `networkInterface()` virtual interfaces macos, `networkInterfaceDefault()` |
|
||||||
| 4.12.0 | 2019-06-21 | `networkInterface()` added property virtual |
|
| 4.12.0 | 2019-06-21 | `networkInterface()` added property virtual |
|
||||||
| 4.11.6 | 2019-06-19 | `util` bug fix |
|
| 4.11.6 | 2019-06-19 | `util` bug fix |
|
||||||
|
|||||||
@ -83,6 +83,11 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<th scope="row">4.12.2</th>
|
||||||
|
<td>2019-06-24</td>
|
||||||
|
<td><span class="code">system()</span> added Raspberry PI 4 detection</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">4.12.1</th>
|
<th scope="row">4.12.1</th>
|
||||||
<td>2019-06-24</td>
|
<td>2019-06-24</td>
|
||||||
|
|||||||
@ -168,7 +168,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">Current Version: <span id="version">4.12.1</span></div>
|
<div class="version">Current Version: <span id="version">4.12.2</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">
|
||||||
|
|||||||
@ -96,8 +96,14 @@ function system(callback) {
|
|||||||
result.serial = util.getValue(lines, 'serial', ':', true);
|
result.serial = util.getValue(lines, 'serial', ':', true);
|
||||||
|
|
||||||
// reference values: https://elinux.org/RPi_HardwareHistory
|
// reference values: https://elinux.org/RPi_HardwareHistory
|
||||||
|
https://www.raspberrypi.org/documentation/hardware/raspberrypi/revision-codes/README.md
|
||||||
if (result.model === 'BCM2835' || result.model === 'BCM2708' || result.model === 'BCM2709' || result.model === 'BCM2835' || result.model === 'BCM2837') {
|
if (result.model === 'BCM2835' || result.model === 'BCM2708' || result.model === 'BCM2709' || result.model === 'BCM2835' || result.model === 'BCM2837') {
|
||||||
|
|
||||||
|
// Pi 4
|
||||||
|
if (['a03111', 'b03111', 'c03111'].indexOf(result.version) >= 0) {
|
||||||
|
result.model = result.model + ' - Pi 4 Model B';
|
||||||
|
result.version = result.version + ' - Rev. 1.1';
|
||||||
|
}
|
||||||
// Pi 3
|
// Pi 3
|
||||||
if (['a02082', 'a22082', 'a32082'].indexOf(result.version) >= 0) {
|
if (['a02082', 'a22082', 'a32082'].indexOf(result.version) >= 0) {
|
||||||
result.model = result.model + ' - Pi 3 Model B';
|
result.model = result.model + ' - Pi 3 Model B';
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user