Ask for hostname

This commit is contained in:
Santiago Lo Coco 2021-12-25 11:22:54 -03:00
parent 5cd1229edc
commit 4e1ba4f8ae
1 changed files with 3 additions and 2 deletions

View File

@ -87,11 +87,12 @@ setLocale() {
} }
networkConf() { 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 " echo "
127.0.0.1 localhost 127.0.0.1 localhost
::1 localhost ::1 localhost
127.0.1.1 archLinux.localdomain archLinux" >> /etc/hosts 127.0.1.1 ${hostname}.localdomain ${hostname}" >> /etc/hosts
} }
setPassword() { setPassword() {