Changeset 504
- Timestamp:
- 07/21/99 22:11:27 (14 years ago)
- Location:
- lm-sensors/trunk
- Files:
-
- 2 modified
-
TODO (modified) (1 diff)
-
prog/detect/sensors-detect (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/TODO
r484 r504 1 1 Many, many things. Most notably: 2 3 I2C CODE CHANGES 4 ================ 5 6 * Test all modules 7 * Add code and supporting files to compile modules into the main kernel 8 * Write a mkpatch script, as in the i2c tree 9 * Check the i2c-isa code, use 16 bit address field in i2c struct. 2 10 3 11 KERNEL MODULES -
lm-sensors/trunk/prog/detect/sensors-detect
r445 r504 971 971 next; 972 972 973 next unless i2c_smbus_ read_byte(\*FILE) >= 0;973 next unless i2c_smbus_write_quick(\*FILE,$SMBUS_WRITE) >= 0; 974 974 printf "Client found at address 0x%02x\n",$addr; 975 975 … … 1473 1473 1474 1474 # These are always needed 1475 $modprobes .= "# General I2C modules\n";1476 $modprobes .= "modprobe i2c-proc\n";1477 1475 $configfile .= "# I2C module options\n"; 1478 1476 $configfile .= "alias char-major-89 i2c-dev\n"; … … 1642 1640 } 1643 1641 1644 print " To continue, we need modules `i2c-proc' and `i2c-dev' to be ", 1645 "loaded.\n"; 1646 if (contains "i2c-proc", @modules_list) { 1647 print "i2c-proc is already loaded.\n"; 1648 } else { 1649 if ($> != 0) { 1650 print " i2c-proc is not loaded, and you are not root. I can't ", 1651 "continue.\n"; 1652 exit; 1653 } else { 1654 print " i2c-proc is not loaded. May I load it now? (YES/no): "; 1655 if (<STDIN> =~ /^\s*[Nn]/) { 1656 print " Sorry, in that case I can't continue.\n"; 1657 exit; 1658 } elsif (system "modprobe","i2c-proc") { 1659 print " Loading failed ($!), aborting.\n"; 1660 exit; 1661 } else { 1662 print " Module loaded succesfully.\n"; 1663 } 1664 } 1665 } 1642 print " To continue, we need module `i2c-dev' to be loaded.\n"; 1666 1643 if (contains "i2c-dev", @modules_list) { 1667 1644 print "i2c-dev is already loaded.\n";
