#!/bin/bash HOSTNAME="ArchTest" #Switch to the script directory _BASENAME=$(basename "$0") cd "$(dirname "$0")" || _exit 1 cp issue /etc/issue cp inputrc /etc/inputrc cp bash.bashrc /etc/bash.bashrc cp bash.bashaliases /etc/bash.bashaliases cp bash.bashexport /etc/bash.bashexport mkdir -p /etc/systemd/system/getty@tty1.service.d/ cp autologin.conf /etc/systemd/system/getty@tty1.service.d/override.conf printf "%s\n" "$HOSTNAME" > /etc/hostname sed -i "s|^PRETTY_NAME.*|PRETTY_NAME=\"$HOSTNAME\"|" /etc/os-release