[v3.2] 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 4186, created on 2015-05-14, closed on 2015-05-26)
- Relations:
- copied_to #4103 (closed)
- Changesets:
- Revision 0b34e934 by Natanael Copa on 2015-05-15T10:06:35Z:
main/openrc: add support for /etc/modules-load.d/*.conf
This makes it convenient for scripts to generate module lists to load at
boot, for example lm_sensors. (ref #4186)
We also get some systemd compatibility:
http://www.freedesktop.org/software/systemd/man/modules-load.d.html
- Revision 37c2ebe2 by Natanael Copa on 2015-05-21T13:38:17Z:
main/lm_sensors: fix sensors-detect
make it generate /etc/modules-load.d/lm_sensors.conf
fixes #4186