mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-19 23:43:00 +02:00
Improved sensors-detection at first collectd start
This commit is contained in:
@@ -16,6 +16,16 @@ case "$1" in
|
||||
# At first run search for sensors with sensors-detect
|
||||
if [ ! -e /etc/sysconfig/lm_sensors ]; then
|
||||
boot_mesg "Searching for Sensors..."
|
||||
|
||||
# First scan
|
||||
"yes" | /usr/sbin/sensors-detect > /dev/null
|
||||
|
||||
# Module load
|
||||
for modul in `cat /etc/sysconfig/lm_sensors | grep '^MODULE_' | cut -d"=" -s -f2`; do
|
||||
modprobe $modul > /dev/null 2>&1;
|
||||
done
|
||||
|
||||
# Second scan
|
||||
"yes" | /usr/sbin/sensors-detect > /dev/null
|
||||
evaluate_retval
|
||||
|
||||
|
||||
Reference in New Issue
Block a user