From 4c0bd63ea4c21eb8140eb5a54b2eeda4b43b7e8e Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sat, 30 Jun 2018 19:58:42 +0100 Subject: [PATCH] localnet: Don't write local hostname to /etc/hosts This is now being provided by nss-myhostname Signed-off-by: Michael Tremer --- src/initscripts/system/localnet | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/initscripts/system/localnet b/src/initscripts/system/localnet index 7ff18d7b47..e071216fd9 100644 --- a/src/initscripts/system/localnet +++ b/src/initscripts/system/localnet @@ -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 } -- 2.39.2