mirror of
https://github.com/henrygd/beszel.git
synced 2026-03-21 21:26:16 +01:00
* SMART: add eMMC health via sysfs Read eMMC wear/EOL indicators from /sys/class/block/mmcblk*/device and expose in SMART device list. Includes mocked sysfs tests and UI tweaks for unknown temps. * small optimizations for emmc scan and parsing * smart: keep smartctl optional only for Linux hosts with eMMC * update smart alerts to handle warning state * refactor: rename binPath to smartctlPath and replace hasSmartctl with smartctlPath checks --------- Co-authored-by: henrygd <hank@henrygd.me>
15 lines
254 B
Go
15 lines
254 B
Go
//go:build !linux
|
|
|
|
package agent
|
|
|
|
// Non-Linux builds: eMMC health via sysfs is not available.
|
|
|
|
func scanEmmcDevices() []*DeviceInfo {
|
|
return nil
|
|
}
|
|
|
|
func (sm *SmartManager) collectEmmcHealth(deviceInfo *DeviceInfo) (bool, error) {
|
|
return false, nil
|
|
}
|
|
|