Time zone select
This commit is contained in:
		| @@ -12,10 +12,12 @@ NC='\033[0m' | |||||||
|  |  | ||||||
| dialog --defaultno --title "DON'T BE A BRAINLET!" --yesno "This is an Arch install script that is very rough around the edges.\n\nOnly run this script if you're a big-brane who doesn't mind deleting your entire /dev/sda drive.\n\nThis script is only really for me so I can autoinstall Arch.\n\nt. Luke"  15 60 || exit | dialog --defaultno --title "DON'T BE A BRAINLET!" --yesno "This is an Arch install script that is very rough around the edges.\n\nOnly run this script if you're a big-brane who doesn't mind deleting your entire /dev/sda drive.\n\nThis script is only really for me so I can autoinstall Arch.\n\nt. Luke"  15 60 || exit | ||||||
|  |  | ||||||
| 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 --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 | dialog --no-cancel --inputbox "Enter a name for your computer." 10 60 2> comp | ||||||
|  |  | ||||||
|  | dialog --defaultno --title "Time Zone select" --yesno "Do you want use the default time zone(America/New_York)?.\n\nPress no for select your own time zone"  10 60 && echo "America/New_York" > tz.tmp || tzselect > tz.tmp | ||||||
|  |  | ||||||
| dialog --no-cancel --inputbox "Enter partitionsize in gb, separated by space (swap & root)." 10 60 2>psize | dialog --no-cancel --inputbox "Enter partitionsize in gb, separated by space (swap & root)." 10 60 2>psize | ||||||
|  |  | ||||||
| IFS=' ' read -ra SIZE <<< $(cat psize) | IFS=' ' read -ra SIZE <<< $(cat psize) | ||||||
| @@ -67,7 +69,8 @@ mount /dev/sda4 /mnt/home | |||||||
| pacstrap /mnt base base-devel | pacstrap /mnt base base-devel | ||||||
|  |  | ||||||
| genfstab -U /mnt >> /mnt/etc/fstab | genfstab -U /mnt >> /mnt/etc/fstab | ||||||
|  | cat tz.tmp > /mnt/tzfinal.tmp | ||||||
|  | rm tz.tmp | ||||||
| curl https://raw.githubusercontent.com/LukeSmithxyz/LARBS/master/src/chroot.sh > /mnt/chroot.sh && arch-chroot /mnt bash chroot.sh && rm /mnt/chroot.sh | curl https://raw.githubusercontent.com/LukeSmithxyz/LARBS/master/src/chroot.sh > /mnt/chroot.sh && arch-chroot /mnt bash chroot.sh && rm /mnt/chroot.sh | ||||||
|  |  | ||||||
| cat comp > /mnt/etc/hostname && rm comp | cat comp > /mnt/etc/hostname && rm comp | ||||||
|   | |||||||
| @@ -2,7 +2,9 @@ | |||||||
|  |  | ||||||
| passwd | passwd | ||||||
|  |  | ||||||
| ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime | TZuser=$(cat tzfinal.tmp) | ||||||
|  |  | ||||||
|  | ln -sf /usr/share/zoneinfo/$TZuser /etc/localtime | ||||||
|  |  | ||||||
| hwclock --systohc | hwclock --systohc | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user