mirror of
https://github.com/rwinkhart/artix-install-script.git
synced 2026-09-02 23:17:32 -04:00
Removed all occurances of UUOC
This commit is contained in:
+12
-12
@@ -1,18 +1,18 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Importing Variables
|
# Importing Variables
|
||||||
formfactor="$(cat /tempfiles/formfactor)"
|
formfactor="$(< /tempfiles/formfactor)"
|
||||||
device="$(cat /tempfiles/device)"
|
device="$(< /tempfiles/device)"
|
||||||
cpu="$(cat /tempfiles/cpu)"
|
cpu="$(< /tempfiles/cpu)"
|
||||||
threadsminusone="$(cat /tempfiles/threadsminusone)"
|
threadsminusone="$(< /tempfiles/threadsminusone)"
|
||||||
gpu="$(cat /tempfiles/gpu)"
|
gpu="$(< /tempfiles/gpu)"
|
||||||
intel_vaapi_driver="$(cat /tempfiles/intel_vaapi_driver)"
|
intel_vaapi_driver="$(< /tempfiles/intel_vaapi_driver)"
|
||||||
boot="$(cat /tempfiles/boot)"
|
boot="$(< /tempfiles/boot)"
|
||||||
disk="$(cat /tempfiles/disk)"
|
disk="$(< /tempfiles/disk)"
|
||||||
username="$(cat /tempfiles/username)"
|
username="$(< /tempfiles/username)"
|
||||||
userpassword="$(cat /tempfiles/userpassword)"
|
userpassword="$(< /tempfiles/userpassword)"
|
||||||
rootpassword="$(cat /tempfiles/rootpassword)"
|
rootpassword="$(< /tempfiles/rootpassword)"
|
||||||
timezone="$(cat /tempfiles/timezone)"
|
timezone="$(< /tempfiles/timezone)"
|
||||||
|
|
||||||
# configuring locale and clock Settings
|
# configuring locale and clock Settings
|
||||||
echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen
|
echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen
|
||||||
|
|||||||
+1
-1
@@ -38,7 +38,7 @@ read -r -p "timezone: " timezone
|
|||||||
cpu=$(lscpu | grep 'Vendor ID:' | awk 'FNR == 1 {print $3;}')
|
cpu=$(lscpu | grep 'Vendor ID:' | awk 'FNR == 1 {print $3;}')
|
||||||
threadsminusone=$(echo "$(lscpu | grep 'CPU(s):' | awk 'FNR == 1 {print $2;}') - 1" | bc)
|
threadsminusone=$(echo "$(lscpu | grep 'CPU(s):' | awk 'FNR == 1 {print $2;}') - 1" | bc)
|
||||||
gpu=$(lspci | grep 'VGA compatible controller:' | awk 'FNR == 1 {print $5;}')
|
gpu=$(lspci | grep 'VGA compatible controller:' | awk 'FNR == 1 {print $5;}')
|
||||||
ram=$(echo "$(cat /proc/meminfo | grep 'MemTotal:' | awk '{print $2;}') / 1000000" | bc)
|
ram=$(echo "$(< /proc/meminfo)" | grep 'MemTotal:' | awk '{print $2;}'); ram=$(echo "$ram / 1000000" | bc)
|
||||||
# stop hardware detection
|
# stop hardware detection
|
||||||
|
|
||||||
# start conditional questions
|
# start conditional questions
|
||||||
|
|||||||
Reference in New Issue
Block a user