Simplify conf_print_hosts().

This commit is contained in:
parazyd 2020-03-12 10:13:11 +01:00
parent 93d89b5f7e
commit 34d263c807
No known key found for this signature in database
GPG Key ID: 6B636BF0493EE747
1 changed files with 3 additions and 7 deletions

View File

@ -41,7 +41,7 @@ conf_print_hostname() {
req=(os)
ckreq || return 1
print $os
print "$os"
}
conf_print_hosts() {
@ -50,12 +50,8 @@ conf_print_hosts() {
ckreq || return 1
cat <<EOF
127.0.0.1 ${os} localhost
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
fe00::0 ip6-mcastprefix
fe02::1 ip6-allnodes
fe02::1 ip6-allrouters
127.0.0.1 localhost ${os}
::1 localhost
EOF
}