From 7096310a858bf6b10afb8e83cd4316cc6908c2fd Mon Sep 17 00:00:00 2001 From: Darren 'Tadgy' Austin Date: Sat, 23 May 2020 21:54:50 +0100 Subject: Include the IPv6 address + hostnames in /etc/networks. --- netconfig | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'netconfig') diff --git a/netconfig b/netconfig index f125455..f314c4e 100644 --- a/netconfig +++ b/netconfig @@ -318,11 +318,9 @@ chmod 644 $ETCNETWORKS # For loopbacking. 127.0.0.1 localhost ::1 localhost -$IPADDR $HOSTNM.$DOMAIN $HOSTNM - -# End of hosts. - EOF +[ -n "$IPADDR" ] && echo -e "$IPADDR\t\t$HOSTNM.$DOMAIN $HOSTNM" >>$HOSTS +[ -n "$IPADDR6" ] && echo -e "$IPADDR6\t\t$HOSTNM.$DOMAIN $HOSTNM" >>$HOSTS chmod 644 $HOSTS # ############################################################################ -- cgit v1.2.3