Changeset 4285
- Timestamp:
- 01/07/07 19:33:23 (6 years ago)
- Location:
- lm-sensors/trunk
- Files:
-
- 2 modified
-
CHANGES (modified) (1 diff)
-
prog/hotplug/unhide_ICH_SMBus (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/CHANGES
r4283 r4285 26 26 Program i2cdetect: Make the output clearer 27 27 Program py-smbus: New! Python i2c-dev bindings (prog/py-smbus) 28 Program unhide_ICH_SMBus: New! Unhides the ICH SMBus evenfor 2.6 kernels28 Program unhide_ICH_SMBus: New! Unhides the ICH SMBus for 2.6 kernels 29 29 without need of recompilation. 30 30 Programs dump/*: More robust handling of user inputs -
lm-sensors/trunk/prog/hotplug/unhide_ICH_SMBus
r4283 r4285 11 11 pcibus="/sys/bus/pci/slots/" 12 12 device="00:1f" 13 14 if [ "$UID" -ne 0 ] ; then 15 echo "You need to be root to run this script!" 16 exit 252 17 fi 18 19 smbus=`lspci -n -s $device.3 | grep -i '0c05: *8086'` 20 if [ -n "$smbus" ] ; then 21 echo "ICH SMBus is already there!" 22 lspci -s $device.3 23 exit 24 fi 13 25 14 26 intel=`lspci -n -s $device.0 | grep 8086` … … 36 48 exit 253; 37 49 fi 38 echo "Done, loading i2c-i801 ..." 39 modprobe i2c-i801 &> /dev/null 50 51 if [ ! -d "/sys/bus/pci/drivers/i801_smbus" ] ; then 52 echo "Loading i2c-i801 ..." 53 modprobe i2c-i801 54 if [ $? -ne 0 ] ; then 55 exit 251 56 fi 57 fi 58 59 lspci -s $device.3 60 echo "Done!"
