Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 37083 - /etc/init.d/lm_sensors confused by changes to /sys layout in 2.6.0 kernel
Summary: /etc/init.d/lm_sensors confused by changes to /sys layout in 2.6.0 kernel
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-03 02:49 UTC by Luke
Modified: 2004-01-04 12:12 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luke 2004-01-03 02:49:24 UTC
In the 2.6.0 kernel, /sys/i2c has moved to /sys/bus/i2c , which causes "/etc/init.d/lm_sensors start" to abort prematurely after loading the i2c-core module.

The start() function of /etc/init.d/lm_sensors checks the existence of /sys/i2c to determine whether to load the i2c-core module.  Also, it will abort if /sys/i2c still does not exist after loading the i2c-core module.  This needs to be changed so that it checks for either the existence of /sys/i2c or /sys/bus/i2c .


Reproducible: Always
Steps to Reproduce:
1. run "sensors-detect" to set up lm_sensors
2. run "/etc/init.d/lm_sensors start"
3. run "sensors"
4. run "lsmod"

Actual Results:  
3. "sensors" reports "No sensors found!"
4. "lsmod" shows that some modules are not loaded that should be (in my case,
w83781d and i2c-viapro were not added)

Expected Results:  
3. show information about my sensors
4. load all required modules
Comment 1 Tim Yamin (RETIRED) gentoo-dev 2004-01-04 12:12:44 UTC
Fixed in CVS, thank you.