duplicate for trigger
This commit is contained in:
parent
2d57305fd8
commit
b59a59af91
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user