Add operational mode command to retrieve hardware sensor data
- use lm-sensors package
- no output should be generated when running in a hypervisor
Add operational mode command to retrieve hardware sensor data
[email protected]:~$ show environment sensors VyOS running under hypervisor, no sensors available
[email protected]:~$ show environment sensors ath10k_hwmon-pci-0500 temp1: N/A k10temp-pci-00c3 temp1: +54.6°C (high = +70.0°C) (crit = +105.0°C, hyst = +104.0°C) fam15h_power-pci-00c4 power1: 3.28 W (interval = 0.01 s, crit = 6.00 W)
Changed this around a bit to load the modules automatically if necessary. Only adds about half a second to initial execution