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