Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > 9a7cea6be4b1232e355805b3b128be7d > scriptlet

microcode_ctl-2.1-3.mga4.x86_64.rpm

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