detect cpu
This commit is contained in:
parent
7633933673
commit
8cfb19e4e0
23
1-setup.sh
23
1-setup.sh
|
|
@ -77,19 +77,16 @@ echo -ne "
|
||||||
-------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
"
|
"
|
||||||
# determine processor type and install microcode
|
# determine processor type and install microcode
|
||||||
proc_type=$(lscpu | awk '/Vendor ID:/ {print $3}')
|
if lscpu | grep -E "GenuineIntel"; then
|
||||||
case "$proc_type" in
|
print "Installing Intel microcode"
|
||||||
GenuineIntel)
|
pacman -S --noconfirm intel-ucode
|
||||||
print "Installing Intel microcode"
|
proc_ucode=intel-ucode.img
|
||||||
pacman -S --noconfirm intel-ucode
|
elif lscpu | grep -E "AuthenticAMD"; then
|
||||||
proc_ucode=intel-ucode.img
|
print "Installing AMD microcode"
|
||||||
;;
|
pacman -S --noconfirm amd-ucode
|
||||||
AuthenticAMD)
|
proc_ucode=amd-ucode.img
|
||||||
print "Installing AMD microcode"
|
fi
|
||||||
pacman -S --noconfirm amd-ucode
|
|
||||||
proc_ucode=amd-ucode.img
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
echo -ne "
|
echo -ne "
|
||||||
-------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
Installing Graphics Drivers
|
Installing Graphics Drivers
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue