mirror of
https://github.com/rwinkhart/artix-install-script.git
synced 2026-08-31 22:26:39 -04:00
Added kernel parameter for full control of newer AMD GPUs
This commit is contained in:
+4
-1
@@ -3,7 +3,7 @@
|
||||
loadkeys us
|
||||
echo ----------------------------------------------------------------------------------------------
|
||||
echo rwinkhart\'s artix install script
|
||||
echo last updated december 04, 2022
|
||||
echo last updated january 02, 2023
|
||||
echo ----------------------------------------------------------------------------------------------
|
||||
echo You will be asked some questions before installation.
|
||||
echo -e "----------------------------------------------------------------------------------------------\n"
|
||||
@@ -37,6 +37,9 @@ read -r -p "timezone: " timezone
|
||||
cpu=$(lscpu | grep 'Vendor ID:' | awk 'FNR == 1 {print $3;}')
|
||||
threadsminusone=$(echo "$(lscpu | grep 'CPU(s):' | awk 'FNR == 1 {print $2;}') - 1" | bc)
|
||||
gpu=$(lspci | grep 'VGA compatible controller:' | awk 'FNR == 1 {print $5;}')
|
||||
if ! ([ "$gpu" == 'NVIDIA' ] || [ "$gpu" == 'Intel' ]); then
|
||||
gpu=AMD
|
||||
fi
|
||||
ram=$(echo "$(< /proc/meminfo)" | grep 'MemTotal:' | awk '{print $2;}'); ram=$(echo "$ram / 1000000" | bc)
|
||||
# stop hardware detection
|
||||
|
||||
|
||||
Reference in New Issue
Block a user