PREUN
/bin/sh
/usr/share/rpm-helper/del-service microcode_ctl $1 microcode_ctl
POSTIN
/bin/sh
# Only enable on Intel 686's and above or AMD family 0x10 and above
vendor=`cat /proc/cpuinfo | grep "^vendor_id" | sort -u | awk -F ": " '{ print $2 }'`
family=`cat /proc/cpuinfo | grep "^cpu family" | sort -u | awk -F ": " '{ print $2 }'`
if [ "$vendor" = "GenuineIntel" ]; then
[ $family -lt 6 ] && exit 0
elif [ "$vendor" = "AuthenticAMD" ]; then
[ $family -lt 16 ] && exit 0
else
exit 0
fi
/usr/share/rpm-helper/add-service microcode_ctl $1 microcode_ctl