artix

desc
git clone https://git.awy.one/artix.git
Log | Files | Refs | README | LICENSE

commit e58378ebe3f6c8de53629dbbbf1008741b4b0f47
parent 0810b8b026f60e5c340b5d9c2ac118684349d5af
Author: awy <awy@awy.one>
Date:   Wed, 30 Oct 2024 02:22:37 +0300

cpu vendor indentification

Diffstat:
Minstall.sh | 16++++++++++++++++
1 file changed, 16 insertions(+), 0 deletions(-)

diff --git a/install.sh b/install.sh @@ -7,6 +7,8 @@ export normal="\033[0m" dinitctl start ntpd +cpuVendorID=$(grep -m 1 'vendor_id' /proc/cpuinfo | awk '{print $3}') + title() { clear echo -ne "${cyan} @@ -66,6 +68,18 @@ getUserData(){ IFS=',' read -r -a partition_array <<< "$partitions" root_drive="$disk_drive${partition_array[1]}" boot_drive="$disk_drive${partition_array[0]}" + while true; do + read -rp "CPU Vendor detected as ${green}$cpuVendorID${normal}, is that right? Y/N: " answer + case "$answer" in + y|Y) + break ;; + n|N) + echo "Something wrong. Exiting..." + exit 1 ;; + *) + echo "Invalid response. Please enter 'y' or 'n'." ;; + esac + done } title @@ -96,3 +110,5 @@ export choosenKernel cp post_chroot.sh /mnt artix-chroot /mnt ./post_chroot.sh +umount -R /mnt +echo "Linux is successfully installed!"