Sophie

Sophie

distrib > Arklinux > devel > i586 > media > main > by-pkgid > 8379fad9c1db87b972d03d177fd3068e > scriptlet

microcode_ctl-1.17-3ark.i586.rpm

PREUN

/bin/sh
if [ "$1" = "0" ] ; then
    /sbin/chkconfig --del microcode_ctl
fi

POSTIN

/bin/sh
# Only enable on Intel 686's and above.
vendor=`cat /proc/cpuinfo | grep "^vendor_id" | sort -u | awk -F ": " '{ print $2 }'`
[ "$vendor" != "GenuineIntel" ] && exit 0
family=`cat /proc/cpuinfo | grep "^cpu family" | sort -u | awk -F ": " '{ print $2 }'`
[ $family -lt 6 ] && exit 0
/sbin/chkconfig --add microcode_ctl