summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackware.com>2021-02-28 15:26:24 -0600
committerRobby Workman <rworkman@slackware.com>2021-02-28 15:26:24 -0600
commitf19b5df1d588df2abdc32392e061dda3383bb9b6 (patch)
treeb7de9ff9088ab8f8066085a91887c1526d1266fe
parent28afc909d024dc0377be3b515f5768d1df34a159 (diff)
downloadslacknetsetup-f19b5df1d588df2abdc32392e061dda3383bb9b6.tar.xz
netconfig: fix formatting of generated hosts file
-rw-r--r--netconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/netconfig b/netconfig
index 63a91e5..69c6d6e 100644
--- a/netconfig
+++ b/netconfig
@@ -302,7 +302,7 @@ chmod 644 $ETCNETWORKS
::1 localhost
EOF
[ -n "${IPADDRS[0]}" ] && echo -e "${IPADDRS[0]%%/*}\t\t$HOSTNM.$DOMAIN $HOSTNM" >>$HOSTS
-[ -n "${IP6ADDRS[0]}" ] && echo -e "${IP6ADDRS[0]%%/*}\t\t$HOSTNM.$DOMAIN $HOSTNM" >>$HOSTS
+[ -n "${IP6ADDRS[0]}" ] && echo -e "${IP6ADDRS[0]%%/*}\t\t\t$HOSTNM.$DOMAIN $HOSTNM" >>$HOSTS
chmod 644 $HOSTS
#
############################################################################