]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
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 7ff18d7b473dcdf55e5282baec33fe732bd926c0..e071216fd90ceb59b7097e9159d828ac8e8bf40a 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
 }