1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00

sysutils/devcpu-data: fix rc script

PR:		225173
Reviewed by:	sbruno
Approved by:	portmgr (implicit)
MFH:		2018Q1
This commit is contained in:
Steve Wills 2018-01-15 17:05:37 +00:00
parent 937de7fff5
commit d8914ff762
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=459084
2 changed files with 8 additions and 3 deletions
sysutils/devcpu-data

View File

@ -3,7 +3,7 @@
PORTNAME= data
PORTVERSION= 1.14
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= sysutils
MASTER_SITES= https://downloadmirror.intel.com/27431/eng/:intel \
LOCAL/sbruno:amd

View File

@ -56,11 +56,16 @@ microcode_update_start()
(echo "Microcode Update Failed." && exit 1)
done
if [ "${microcode_cpus}" = "ALL" ]; then
${CMT} -e /dev/cpuctl${i} >/dev/null 2>&1
CPUCONTROL_UPDATED=$(cpucontrol -h 2>&1 | grep -q -- -e; echo $?)
if [ ${CPUCONTROL_UPDATED} -ne 0 ]; then
echo "Please update your system in order to update CPU microcode."
else
${CMT} -e /dev/cpuctl0 >/dev/null 2>&1
if [ $? -ne 0 ]; then
echo "Re-evalutation of CPU flags Failed."
echo "Re-evalulation of CPU flags Failed."
exit 1
fi
fi
fi
echo "Done."
}