mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-14 04:52:59 +02:00
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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user