Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 400766 Details for
Bug 480018
sys-apps/lm_sensors-3.3.4: /etc/init.d/lm_sensors should not check for MODULES_0 in /etc/conf.d/lm_sensors
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
initd patch
lm_sensors-3-init.d.diff (text/plain), 2.11 KB, created by
Anton Kuleshov
on 2015-04-07 14:48:21 UTC
(
hide
)
Description:
initd patch
Filename:
MIME Type:
Creator:
Anton Kuleshov
Created:
2015-04-07 14:48:21 UTC
Size:
2.11 KB
patch
obsolete
>--- old/lm_sensors-3-init.d 2015-03-31 06:38:56.723120744 +0300 >+++ new/lm_sensors-3-init.d 2015-04-07 17:45:25.194569569 +0300 >@@ -10,8 +10,8 @@ > fi > > if [ "${LOADMODULES}" = "yes" -a -f /proc/modules ]; then >- if [ -z "${MODULE_0}" ]; then >- eerror "MODULE_0 is not set in /etc/conf.d/lm_sensors, try running sensors-detect" >+ if [ -z "${HWMON_MODULES}" ]; then >+ eerror "HWMON_MODULES is not set in /etc/conf.d/lm_sensors, try running sensors-detect" > return 1 > fi > fi >@@ -45,19 +45,18 @@ > [ -e /proc/sys/dev/sensors ] || return 1 > eend 0 > fi >- >- i=0 >- while true; do >- module=`eval echo '$'MODULE_${i}` >- module_args=`eval echo '$'MODULE_${i}_ARGS` >- if [ -z "${module}" ]; then >- break >- fi >- ebegin " Loading ${module}" >- modprobe ${module} ${module_args} >/dev/null 2>&1 >- eend $? >- i=$(($i+1)) >- done >+ >+ for module in ${BUS_MODULES}; do >+ ebegin " Loading ${module}" >+ modprobe ${module} >/dev/null 2>&1 >+ eend $? >+ done >+ >+ for module in ${HWMON_MODULES}; do >+ ebegin " Loading ${module}" >+ modprobe ${module} >/dev/null 2>&1 >+ eend $? >+ done > fi > > if [ "${INITSENSORS}" = "yes" ]; then >@@ -77,25 +76,19 @@ > > if [ "${LOADMODULES}" = "yes" -a -f /proc/modules ]; then > einfo "Unloading lm_sensors modules..." >- >- # find the highest possible MODULE_ number >- i=0 >- while true; do >- module=`eval echo '$'MODULE_${i}` >- if [ -z "${module}" ] ; then >- break >- fi >- i=$(($i+1)) >- done >- >- while [ ${i} -gt 0 ]; do >- i=$(($i-1)) >- module=`eval echo '$'MODULE_${i}` >- ebegin " Unloading ${module}" >- rmmod ${module} >/dev/null 2>&1 >- eend $? >- done >- >+ >+ for module in ${HWMON_MODULES}; do >+ ebegin " Unloading ${module}" >+ rmmod ${module} >/dev/null 2>&1 >+ eend $? >+ done >+ >+ for module in ${BUS_MODULES}; do >+ ebegin " Unloading ${module}" >+ rmmod ${module} >/dev/null 2>&1 >+ eend $? >+ done >+ > if [ -e /proc/sys/dev/sensors ] ; then > ebegin " Unloading i2c-proc" > rmmod i2c-proc >/dev/null 2>&1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 480018
:
399878
|
400244
| 400766 |
409754
|
409756
|
409758
|
409760