lm_sensors/lm_sensors-modprobe-r-wrapper

13 lines
389 B
Bash

#!/bin/sh
if [ $# -ne 0 ]; then
/usr/sbin/modprobe -abr "$@"
else
if ! /usr/bin/sensors -s &> /dev/null ; then
echo "No sensors with loadable kernel modules configured."
echo "Please, run 'sensors-detect' as root in order to search for available sensors."
exit 1
else
echo "you can run 'sensors-detect' as root in order to search for more available sensors."
fi
fi