From 140bc22947f21417fc4e18d629f9869f5ae64340 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Thu, 11 Jan 2007 21:11:05 +0000 Subject: [PATCH] Make sure that the ICH chip is one of the supported models. Otherwise we would write to a random register with unpredictable results. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4289 7894878c-1315-0410-8ee3-d5d059ff63e0 --- prog/hotplug/unhide_ICH_SMBus | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/prog/hotplug/unhide_ICH_SMBus b/prog/hotplug/unhide_ICH_SMBus index a85d3e61..395c4502 100755 --- a/prog/hotplug/unhide_ICH_SMBus +++ b/prog/hotplug/unhide_ICH_SMBus @@ -7,6 +7,16 @@ # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 # as published by the Free Software Foundation +# +# Supports the following Intel ICH chipsets: +# PCI ID +# ICH2 8086:2440 +# ICH2-M 8086:244C +# ICH3 8086:2480 +# ICH3-M 8086:248C +# ICH4 8086:24C0 +# ICH4-M 8086:24CC +# ICH5 8086:24D0 pcibus="/sys/bus/pci/slots/" device="00:1f" @@ -23,10 +33,10 @@ if [ -n "$smbus" ] ; then exit fi -intel=`lspci -n -s $device.0 | grep 8086` - +intel=`lspci -n -s $device.0 | grep -i '8086:24[48CD][0C]'` if [ -z "$intel" ] ; then echo "Not for your chipset - Intel (ICH) only" + echo "Supported: ICH2, ICH2-M, ICH3, ICH3-M, ICH4, ICH4-M, ICH5" exit 255; fi modprobe fakephp &> /dev/null