Sophie

Sophie

distrib > Scientific%20Linux > 5x > i386 > by-pkgid > d1b69f87e4e1fdf0f1f10395a537e641 > scriptlet

microcode_ctl-1.17-7.el5.i386.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

Triggers

kernel-utils

/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
exit 0