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