intel-ucode-surum

This commit is contained in:
milisbir 2018-01-11 18:15:16 +02:00
parent 5589791174
commit 81a6f7df1b
2 changed files with 4 additions and 2 deletions

View File

@ -2,8 +2,8 @@
mps guncelle mps guncelle
#[ ! -d /var/lib/pkg/DB/iucode-tool ] && mps kur iucode-tool #[ ! -d /var/lib/pkg/DB/iucode-tool ] && mps kur iucode-tool
[ "`mps bil surum intel-ucode`" <> "2.1.15" ] && mps -g intel-ucode [ "`mps bil surum intel-ucode`" <> "2.1.15" ] && mps -g intel-ucode
echo "early_microcode=yes" >> /usr/lib/dracut/dracut.conf.d/intel_ucode.conf [ ! -f /usr/lib/dracut/dracut.conf.d/intel_ucode.conf ] && echo "early_microcode=yes" >> /usr/lib/dracut/dracut.conf.d/intel_ucode.conf
# buna gerek yok dracut oto dahil ediyor. # buna gerek yok dracut oto dahil ediyor.
#iucode_tool -S --write-earlyfw=/boot/guncel_ucode.cpio /lib/firmware/intel-ucode/* #iucode_tool -S --write-earlyfw=/boot/guncel_ucode.cpio /lib/firmware/intel-ucode/*
initramfs_guncelle initramfs_guncelle
grub-guncelle #grub-guncelle

2
bin/intel-ucode-surum Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
cat /proc/cpuinfo | grep microcode | sed -n 1p | cut -d':' -f2 | sed 's/^ *//;s/ *$//'