Changeset 1054 for lm-sensors/trunk/prog/detect/sensors-detect
- Timestamp:
- 03/31/01 21:07:09 (11 years ago)
- Files:
-
- 1 modified
-
lm-sensors/trunk/prog/detect/sensors-detect (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/prog/detect/sensors-detect
r1043 r1054 1277 1277 open FILE,"/dev/i2c-$new_misdetected_ref->[$i]->{i2c_devnr}" or 1278 1278 open FILE,"/dev/i2c$new_misdetected_ref->[$i]->{i2c_devnr}" or 1279 print("Can't open ", 1280 "/dev/i2c[-]$new_misdetected_ref->[$i]->{i2c_devnr}?!?\n"), 1281 next; 1279 open FILE,"/dev/i2c/$new_misdetected_ref->[$i]->{i2c_devnr}" or 1280 print("Can't open ", 1281 "/dev/i2c[-/]$new_misdetected_ref->[$i]->{i2c_devnr}?!?\n"), 1282 next; 1282 1283 i2c_set_slave_addr \*FILE,$new_misdetected_ref->[$i]->{i2c_addr} or 1283 1284 print("Can't set I2C address for ", 1284 "/dev/i2c[- ]$new_misdetected_ref->[$i]->{i2c_devnr}?!?\n"),1285 "/dev/i2c[-/]$new_misdetected_ref->[$i]->{i2c_devnr}?!?\n"), 1285 1286 next; 1286 1287 if (&$alias_detect ($datahash->{isa_addr},\*FILE, … … 1304 1305 open FILE,"/dev/i2c-$new_detected_ref->[$i]->{i2c_devnr}" or 1305 1306 open FILE,"/dev/i2c$new_detected_ref->[$i]->{i2c_devnr}" or 1306 print("Can't open ", 1307 "/dev/i2c[-]$new_detected_ref->[$i]->{i2c_devnr}?!?\n"), 1308 next; 1307 open FILE,"/dev/i2c/$new_detected_ref->[$i]->{i2c_devnr}" or 1308 print("Can't open ", 1309 "/dev/i2c[-/]$new_detected_ref->[$i]->{i2c_devnr}?!?\n"), 1310 next; 1309 1311 i2c_set_slave_addr \*FILE,$new_detected_ref->[$i]->{i2c_addr} or 1310 1312 print("Can't set I2C address for ", 1311 "/dev/i2c[- ]$new_detected_ref->[$i]->{i2c_devnr}?!?\n"),1313 "/dev/i2c[-/]$new_detected_ref->[$i]->{i2c_devnr}?!?\n"), 1312 1314 next; 1313 1315 if (&$alias_detect ($datahash->{isa_addr},\*FILE, … … 1375 1377 open FILE,"/dev/i2c-$adapter_nr" or 1376 1378 open FILE,"/dev/i2c$adapter_nr" or 1377 (print "Can't open /dev/i2c[-]$adapter_nr\n"), return; 1379 open FILE,"/dev/i2c/$adapter_nr" or 1380 (print "Can't open /dev/i2c[-/]$adapter_nr\n"), return; 1378 1381 1379 1382 # Now scan each address in turn … … 2294 2297 " doc/modules for more information.\n"; 2295 2298 print " Also, you need to be `root', or at least have access to the ", 2296 "/dev/i2c[- ]* files\n",2299 "/dev/i2c[-/]* files\n", 2297 2300 " for some things. You can use prog/mkdev/mkdev.sh to create these ", 2298 2301 "/dev files\n", … … 2376 2379 " `/etc/conf.modules' (or `/etc/modules.conf') for automatic ", 2377 2380 "loading of\n", 2378 " this module. If not, you won't be able to open any /dev/i2c[- ]* ",2381 " this module. If not, you won't be able to open any /dev/i2c[-/]* ", 2379 2382 "file.\n"; 2380 2383 } else { … … 2385 2388 " (or `/etc/modules.conf') for automatic loading of this ", 2386 2389 "module. If not,\n", 2387 " you won't be able to open any /dev/i2c[- ]* file (unless you",2390 " you won't be able to open any /dev/i2c[-/]* file (unless you", 2388 2391 "have it built-in\n", 2389 2392 " into your kernel)\n";
