localnet: Don't write local hostname to /etc/hosts

This is now being provided by nss-myhostname

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2018-06-30 19:58:42 +01:00
parent a1c5ceeb34
commit 4c0bd63ea4

View File

@@ -23,14 +23,8 @@ write_resolv_conf() {
}
write_hosts() {
eval $(/usr/local/bin/readhash /var/ipfire/ethernet/settings)
(
echo "127.0.0.1 localhost.localdomain localhost"
if [ -n "${GREEN_ADDRESS}" ]; then
echo "${GREEN_ADDRESS} ${HOSTNAME}.${DOMAINNAME} ${HOSTNAME}"
fi
) > /etc/hosts
}