Add SENSORS_SYSFS_ROOT environment support

With this the hardcoded /sys location for reading sensor data can be
changed. In particular it makes it possible to tar up the /sys directory
when a problem is encountered, and then reproduce it on another system.

Signed-off-by: Michal Suchanek <msuchanek@suse.de>
This commit is contained in:
Michal Suchanek committed 2024-01-07 21:20:39 +01:00
1 parent 25108fe4a4
commit 89548dab2a
2 files changed
+27 -4

No files matched your search

+1 -1
View File
@@ -22,7 +22,7 @@
#ifndef LIB_SENSORS_SYSFS_H
#define LIB_SENSORS_SYSFS_H
extern char sensors_sysfs_mount[];
extern const char *sensors_sysfs_mount;
int sensors_init_sysfs(void);