localnet: Don't write local hostname to /etc/hosts
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 30 Jun 2018 18:58:42 +0000 (19:58 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 30 Jun 2018 18:58:42 +0000 (19:58 +0100)
This is now being provided by nss-myhostname

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/initscripts/system/localnet

index 7ff18d7..e071216 100644 (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
 }