chroot.sh 920 B

1234567891011121314151617181920212223242526272829303132
  1. #!/bin/bash
  2. # This a lazy and DANGEROUS way to install Arch.
  3. # I do not recommend this to other people, ONLY
  4. # do this if you exactly understand EVERY SINGLE
  5. # LINE of this bash script. You'll thank me later.
  6. read -p "Press any key to continue"
  7. passwd
  8. read -p "Press any key to continue"
  9. TZuser=$(cat tzfinal.tmp)
  10. ln -sf /usr/share/zoneinfo/$TZuser /etc/localtime
  11. read -p "Press any key to continue"
  12. hwclock --systohc
  13. read -p "Press any key to continue"
  14. echo "LANG=en_GB.UTF-8" >> /etc/locale.conf
  15. echo "en_GB.UTF-8 UTF-8" >> /etc/locale.gen
  16. locale-gen
  17. read -p "Press any key to continue"
  18. pacman --noconfirm --needed -S networkmanager
  19. systemctl enable NetworkManager
  20. systemctl start NetworkManager
  21. read -p "Press any key to continue"
  22. DRIVE=$(cat drive)
  23. pacman --noconfirm --needed -S grub && grub-install --target=i386-pc /dev/${DRIVE} && grub-mkconfig -o /boot/grub/grub.cfg
  24. read -p "Press any key to continue"