This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
lsts_glued/rules/filesystem/fs/etc/rc.d/microcode

18 lines
429 B
Plaintext
Raw Normal View History

2013-07-13 17:19:22 +01:00
start()
{
dmesg | grep microcode_updated
if [ $? -ne 0 ]; then
echo -en 'Waiting for system to settle '
for x in 0 1 2; do echo -en '.'; sleep 1; done
cmd_line="$(dmesg | grep "command line:" | cut -f2- -d: | sed 's/noapic//g')"
/sbin/microcode_ctl -u &&
/sbin/kexec -l /boot/kernel --append "$cmd_line microcode_updated" &&
/sbin/kexec -e
fi
}
stop()
{
echo ""
}