Ask for hostname
This commit is contained in:
parent
5cd1229edc
commit
4e1ba4f8ae
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue