#!/bin/bash pacman -Sy --noconfirm dialog || { printf "Error at script start:\n\nAre you sure you're running this as the root user?\n\t(Tip: run 'whoami' to check)\n\nAre you sure you have an internet connection?\n\t(Tip: run 'ip a' to check)\n"; exit; } clear lsblk -d | sed 's/0 disk/0 disk\\n/;s/POINT/POINT\\n/' read -rp "Press any key to continue" dialog --no-cancel --inputbox "Enter the drive you want do install Arch Linux for the VIDEOPC on." 10 60 2>drive DRIVE=$(cat drive) PVALUE=$(echo "${DRIVE}" | grep "^nvme" | sed 's/.*[0-9]/p/') cat <> /mnt/etc/fstab mv drive /mnt echo "Europe/Zurich" > /mnt/tzfinal.tmp echo "videopc" > /mnt/etc/hostname cp chroot.sh /mnt arch-chroot /mnt bash chroot.sh rm /mnt/chroot.sh cp videopc-bootstrap.sh /mnt arch-chroot /mnt bash videopc-bootstrap.sh rm /mnt/videopc-bootstrap.sh