Lines 56-66
microcode_update_start()
Link Here
|
56 |
(echo "Microcode Update Failed." && exit 1) |
56 |
(echo "Microcode Update Failed." && exit 1) |
57 |
done |
57 |
done |
58 |
if [ "${microcode_cpus}" = "ALL" ]; then |
58 |
if [ "${microcode_cpus}" = "ALL" ]; then |
59 |
${CMT} -e /dev/cpuctl${i} >/dev/null 2>&1 |
59 |
CPUCONTROL_UPDATED=$(cpucontrol -h 2>&1 | grep -q -- -e; echo $?) |
|
|
60 |
if [ ${CPUCONTROL_UPDATED} -ne 0 ]; then |
61 |
echo "Please update your system in order to update CPU microcode." |
62 |
else |
63 |
${CMT} -e /dev/cpuctl0 >/dev/null 2>&1 |
60 |
if [ $? -ne 0 ]; then |
64 |
if [ $? -ne 0 ]; then |
61 |
echo "Re-evalutation of CPU flags Failed." |
65 |
echo "Re-evalulation of CPU flags Failed." |
62 |
exit 1 |
66 |
exit 1 |
63 |
fi |
67 |
fi |
|
|
68 |
fi |
64 |
fi |
69 |
fi |
65 |
echo "Done." |
70 |
echo "Done." |
66 |
} |
71 |
} |