From b59a59af913eaa67a8a96e5f06a550be4c626508 Mon Sep 17 00:00:00 2001 From: Dave Jones Date: Fri, 14 Jan 2005 06:49:25 +0000 Subject: [PATCH] duplicate for trigger --- microcode_ctl.spec | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/microcode_ctl.spec b/microcode_ctl.spec index 03b4543..e58680b 100644 --- a/microcode_ctl.spec +++ b/microcode_ctl.spec @@ -78,6 +78,16 @@ fi /sbin/chkconfig --add microcode_ctl %triggerpostun -- kernel-utils +# Only enable on Intel machines. +vendor=`cat /proc/cpuinfo | grep "^vendor_id" | sort -u | awk -F ": " '{ print $2 }'` +if [ "$vendor" != "GenuineIntel" ]; then + exit 0; +fi +# Microcode wasn't available until 686's. +family=`cat /proc/cpuinfo | grep "^cpu family" | sort -u | awk -F ": " '{ print $2 }'` +if [ $family -lt 6 ]; then + exit 0; +fi /sbin/chkconfig --add microcode_ctl exit 0