Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 142236 Details for
Bug 198030
sys-apps/lm_sensors-2.10.7/3.0.2 version bump
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Updated lm_sensors3-init.d for new config files
lm_sensors3-init.d (text/plain), 2.40 KB, created by
Sonny Lander
on 2008-01-30 22:24:42 UTC
(
hide
)
Description:
Updated lm_sensors3-init.d for new config files
Filename:
MIME Type:
Creator:
Sonny Lander
Created:
2008-01-30 22:24:42 UTC
Size:
2.40 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2006 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: /var/cvsroot/gentoo-x86/sys-apps/lm_sensors/files/lm_sensors-init.d,v 1.3 2007/06/12 08:52:16 zzam Exp $ > >checkconfig() { > if [ ! -f /etc/conf.d/lm_sensors ]; then > eerror "/etc/conf.d/lm_sensors does not exist, try running sensors-detect" > return 1 > 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" > return 1 > fi > fi >} > >start() { > checkconfig || return 1 > > if [ "${LOADMODULES}" = "yes" -a -f /proc/modules ]; then > einfo "Loading lm_sensors modules..." > > mount | grep sysfs >/dev/null 2>&1 > if [ ${?} = 0 ]; then > if ! ( [ -e /sys/i2c ] || [ -e /sys/bus/i2c ] ); then > ebegin " Loading i2c-core" > modprobe i2c-core >/dev/null 2>&1 > if [ ${?} != 0 ]; then > eerror " Could not load i2c-core!" > eend 1 > fi > ( [ -e /sys/i2c ] || [ -e /sys/bus/i2c ] ) || return 1 > eend 0 > fi > elif ! [ -e /proc/sys/dev/sensors ]; then > ebegin " Loading i2c-proc" > modprobe i2c-proc >/dev/null 2>&1 > if [ ${?} != 0 ]; then > eerror " Could not load i2c-proc!" > eend 1 > fi > [ -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 > fi > > if [ "${INITSENSORS}" = "yes" ]; then > if ! [ -f /etc/sensors3.conf ]; then > eerror "/etc/sensors3.conf does not exist!" > return 1 > fi > > ebegin "Initializing sensors" > /usr/bin/sensors -s >/dev/null 2>&1 > eend ${?} > fi >} > >stop() { > checkconfig || return 1 > > 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 > > if [ -e /proc/sys/dev/sensors ] ; then > ebegin " Unloading i2c-proc" > rmmod i2c-proc >/dev/null 2>&1 > eend $? > fi > fi >}
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 Raw
Actions:
View
Attachments on
bug 198030
:
142219
|
142231
|
142232
|
142234
| 142236 |
143563