Changeset 4137
- Timestamp:
- 09/03/06 10:07:59 (7 years ago)
- Files:
-
- 1 modified
-
lm-sensors/trunk/prog/detect/sensors-detect (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/prog/detect/sensors-detect
r4136 r4137 2796 2796 my ($device, $driver); 2797 2797 if (defined($sysfs_root)) { 2798 $device = sprintf(" /sys/bus/i2c/devices/\%d-\%04x",2798 $device = sprintf("$sysfs_root/bus/i2c/devices/\%d-\%04x", 2799 2799 $adapter_nr, $addr); 2800 2800 $driver = sysfs_device_driver($device); … … 5324 5324 "scanned by manually loading the modules before running this script.\n\n"; 5325 5325 5326 if (!exists($modules_list{"i2c-dev"}) && ! -e "/sys/class/i2c-dev") { 5326 if (!exists($modules_list{"i2c-dev"}) 5327 && !(defined $sysfs_root && -e "$sysfs_root/class/i2c-dev")) { 5327 5328 print "To continue, we need module `i2c-dev' to be loaded.\n"; 5328 5329 print "If it is built-in into your kernel, you can safely skip this.\n"
