lm_sensors init script should not check for MODULES_0 in /etc/conf.d/lm_sensors
As of upstream commit 6115 http://lm-sensors.org/changeset/6115/lm-sensors/trunk, sensors-detect no longer generates MODULE_0, MODULE_1, MODULE_2 variables.
apu4c:~# apk add sysfsutils lm_sensors
apu4c:~# cat /etc/conf.d/lm_sensors
- Generated by sensors-detect on Sun Apr 26 19:37:39 2015
- Load modules at startup
LOADMODULES=yes
- Initialize sensors at startup
INITSENSORS=yes
- This file is sourced by /etc/init.d/lm_sensors and defines the modules to
- be loaded/unloaded.
# - The format of this file is a shell script that simply defines variables:
- HWMON_MODULES for hardware monitoring driver modules, and optionally
- BUS_MODULES for any required bus driver module (for example for I2C or SPI).
HWMON_MODULES=“k10temp”
apu4c:~#
apu4c:~# /etc/init.d/lm_sensors start
* MODULE_0 is not set in /etc/conf.d/lm_sensors, try running
sensors-detect
* ERROR: lm_sensors failed to start
apu4c:~#
Workaround is to change inside /etc/conf.d/lm_sensors the HWMON_MODULES to MODULE_0, after which lm_sensors init script could be startet.
Gentoo Bug report: https://bugs.gentoo.org/show\_bug.cgi?id=480018
(from redmine: issue id 4103, created on 2015-04-27, closed on 2015-05-14)
- Relations:
- copied_to #4186 (closed)
- Changesets:
- Revision ae1b20f2 by Natanael Copa on 2015-05-14T08:46:10Z:
main/lm_sensors: fix init.d to nor check for MODULES_0
fixes #4103
fix is from https://bugs.gentoo.org/show_bug.cgi?id=480018
- Revision fece1d19 by Natanael Copa on 2015-05-21T13:40:20Z:
main/lm_sensors: fix init.d to not check for MODULES_0
ref #4103
fix is from https://bugs.gentoo.org/show_bug.cgi?id=480018
We fix our init.d script for compatibility reasons
(cherry picked from commit ae1b20f204ee9e9e6bfc3f9787637b5c8820b624)