2019-09-30 11:02:43 -04:00
|
|
|
#!/bin/sh
|
|
|
|
|
if [ $# -ne 0 ]; then
|
|
|
|
|
/usr/sbin/modprobe -ab "$@"
|
|
|
|
|
else
|
2020-05-22 10:13:56 +08:00
|
|
|
if ! /usr/bin/sensors -s &> /dev/null ; then
|
2020-05-21 16:05:50 +08:00
|
|
|
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
|
2019-09-30 11:02:43 -04:00
|
|
|
fi
|