From 4e1ba4f8aedee1ffa21d806d3a074cf31b1989e6 Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Sat, 25 Dec 2021 11:22:54 -0300 Subject: [PATCH] Ask for hostname --- install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index cba2f65..a91eb7e 100755 --- a/install.sh +++ b/install.sh @@ -87,11 +87,12 @@ setLocale() { } networkConf() { - echo "archLinux" > /etc/hostname + hostname=$(dialog --inputbox "Enter the hostname." 10 60 3>&1 1>&2 2>&3 3>&1) + echo "${hostname}" > /etc/hostname echo " 127.0.0.1 localhost ::1 localhost -127.0.1.1 archLinux.localdomain archLinux" >> /etc/hosts +127.0.1.1 ${hostname}.localdomain ${hostname}" >> /etc/hosts } setPassword() {