diff options
author | Darren 'Tadgy' Austin <darren@afterdark.org.uk> | 2020-05-23 21:54:50 +0100 |
---|---|---|
committer | Darren 'Tadgy' Austin <darren@afterdark.org.uk> | 2020-05-23 21:54:50 +0100 |
commit | 7096310a858bf6b10afb8e83cd4316cc6908c2fd (patch) | |
tree | b88cd163b59d185b7a6b2ab21db6cd5c92fcd1d8 /netconfig | |
parent | 7d8536a1ab1c4e1f5a38c987207dbd119a6455af (diff) | |
download | slacknetsetup-7096310a858bf6b10afb8e83cd4316cc6908c2fd.tar.xz |
Include the IPv6 address + hostnames in /etc/networks.
Diffstat (limited to 'netconfig')
-rw-r--r-- | netconfig | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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 # ############################################################################ |