lm_sensors/lm_sensors-wrapper
Artem Egorenkov a2bee3abb7 New flag for no sensors added. This flag is used in VM environment
to make sensors binaries not fail if no sensors was detected.
2021-02-25 13:50:10 +01:00

9 lines
159 B
Bash
Executable File

#!/bin/sh
if /usr/bin/systemd-detect-virt 2>/dev/null 1>&2; then
SENSORS_FLAGS_VM='-n';
else
SENSORS_FLAGS_VM='';
fi;
/usr/bin/sensors -s $SENSORS_FLAGS_VM