summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2009-02-21 18:07:14 +0000
committerkrw <krw@openbsd.org>2009-02-21 18:07:14 +0000
commitd427e33d42fd4fc42d584c760f9c7b398584925e (patch)
tree345494f3f43be87b4f55a4fdc16916b639e04629
parentuse FILE_ON_DISK flags when we need to verify if a file (diff)
downloadwireguard-openbsd-d427e33d42fd4fc42d584c760f9c7b398584925e.tar.xz
wireguard-openbsd-d427e33d42fd4fc42d584c760f9c7b398584925e.zip
Pretty up installed hosts file by using tabs between address and
names. Update copyright year since we are making noticable changes.
-rw-r--r--distrib/miniroot/install.sh16
1 files changed, 8 insertions, 8 deletions
diff --git a/distrib/miniroot/install.sh b/distrib/miniroot/install.sh
index 516d680f4b5..384e5270e6e 100644
--- a/distrib/miniroot/install.sh
+++ b/distrib/miniroot/install.sh
@@ -1,8 +1,8 @@
#!/bin/ksh
-# $OpenBSD: install.sh,v 1.161 2009/02/19 02:11:32 krw Exp $
+# $OpenBSD: install.sh,v 1.162 2009/02/21 18:07:14 krw Exp $
# $NetBSD: install.sh,v 1.5.2.8 1996/08/27 18:15:05 gwr Exp $
#
-# Copyright (c) 1997-2004 Todd Miller, Theo de Raadt, Ken Westerback
+# Copyright (c) 1997-2009 Todd Miller, Theo de Raadt, Ken Westerback
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -318,10 +318,10 @@ THESETS="$THESETS site$VERSION-$(hostname -s).tgz"
# Always create new hosts file.
cat >/tmp/hosts <<__EOT
-::1 localhost
-127.0.0.1 localhost
-::1 $(hostname -s)
-127.0.0.1 $(hostname -s)
+::1 localhost
+127.0.0.1 localhost
+::1 $(hostname -s)
+127.0.0.1 $(hostname -s)
__EOT
ask_yn "Configure the network?" yes
@@ -376,9 +376,9 @@ hostname >myname
_dn=$(get_fqdn)
while read _addr _hn _aliases; do
if [[ -n $_aliases || $_hn != ${_hn%%.*} || -z $_dn ]]; then
- echo "$_addr $_hn $_aliases"
+ echo "$_addr\t$_hn $_aliases"
else
- echo "$_addr $_hn.$_dn $_hn"
+ echo "$_addr\t$_hn.$_dn $_hn"
fi
done <hosts >hosts.new
mv hosts.new hosts