diff --git a/base.sh b/base.sh index 85c312c..104d41f 100755 --- a/base.sh +++ b/base.sh @@ -19,12 +19,16 @@ locale-gen echo "LANG=$lang.UTF-8" > /etc/locale.conf echo "$hostname" > /etc/hostname -# Packages +# Drivers case "$(lscpu | grep Vendor)" in *AuthenticAMD*) cpu=amd ;; *GenuineIntel*) cpu=intel ;; esac +sed -i '/^HOOKS=(/s/filesystems/encrypt filesystems/' /etc/mkinitcpio.conf +./gpu.sh + +# Packages $PACMAN "${pkg[@]}" "$cpu-ucode" systemctl enable \ NetworkManager \ @@ -44,11 +48,6 @@ echo "$username:$user_passwd" | chpasswd sed -i '/^# %wheel\s\+ALL=(ALL:ALL)\s\+ALL/s/^#\s*//' /etc/sudoers -# drivers -sed -i '/^HOOKS=(/s/filesystems/encrypt filesystems/' /etc/mkinitcpio.conf - -./gpu.sh - # Bootloader bootctl install