mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-27 12:30:43 +00:00
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
This commit is contained in:
1 parent
2387b4cd73
commit
140bc22947
1 file changed
+12
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user