Ability to choose computer name

This commit is contained in:
Luke 2017-10-05 00:19:56 -07:00
parent 574e4ab15c
commit 603b54590e
2 changed files with 6 additions and 2 deletions

View file

@ -1,4 +1,4 @@
#Potential variables: timezone, hostname
#Potential variables: timezone, lang and local
ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime
@ -8,7 +8,7 @@ echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
echo "en_US ISO-8859-1" >> /etc/locale.gen
locale-gen
echo "test" > /etc/hostname
#echo "test" > /etc/hostname
pacman -S networkmanager
systemctl enable NetworkManager

View file

@ -16,6 +16,8 @@ dialog --defaultno --title "DON'T BE A BRAINLET!" --yesno "Have you seen this fi
dialog --defaultno --title "DON'T BE A BRAINLET!" --yesno "Do you think I'm meming? Only select yes to DELET your entire /dev/sda and reinstall Arch.\n\nTo stop this script, press no." 10 60 || exit
dialog --no-cancel --inputbox "Enter a name for your computer." 10 60 2> comp
timedatectl set-ntp true
cat <<EOF | fdisk /dev/sda
@ -54,6 +56,8 @@ mount /dev/sda1 /mnt/boot
mkdir /mnt/home
mount /dev/sda4 /mnt/home
cat comp > /mnt/etc/hostname && rm comp
pacstrap /mnt base base-devel
genfstab -U /mnt >> /mnt/etc/fstab