summaryrefslogtreecommitdiff
path: root/distrib/miniroot/install.sh
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2001-11-18 22:48:59 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2001-11-18 22:48:59 +0000
commitd8a2b748ca93f4acae3931e8d26a3e2889992dd8 (patch)
tree8ee5d7b4437b93a5721cafa579a7172198bd9463 /distrib/miniroot/install.sh
parent9fc9cfad2d52800f4b00d6328a74af04450a4005 (diff)
Purge more (last?) comments from install scripts by removing all
comments that, being on the end of code lines, cannot be stripped automatically. Just delete unhelpful ones, and move the rest onto separate lines where they can be stripped. Also remove a duplicated initialization of ROOTDISK. In total, reduces script size on floppy by 1117 bytes, making room for coming improvements.
Diffstat (limited to 'distrib/miniroot/install.sh')
-rw-r--r--distrib/miniroot/install.sh12
1 files changed, 8 insertions, 4 deletions
diff --git a/distrib/miniroot/install.sh b/distrib/miniroot/install.sh
index 47da136a25f..7e7323b8e70 100644
--- a/distrib/miniroot/install.sh
+++ b/distrib/miniroot/install.sh
@@ -1,5 +1,5 @@
#!/bin/sh
-# $OpenBSD: install.sh,v 1.79 2001/10/14 02:35:57 millert Exp $
+# $OpenBSD: install.sh,v 1.80 2001/11/18 22:48:58 krw Exp $
# $NetBSD: install.sh,v 1.5.2.8 1996/08/27 18:15:05 gwr Exp $
#
# Copyright (c) 1997,1998 Todd Miller, Theo de Raadt
@@ -70,8 +70,12 @@
# In a perfect world, this would be a nice C program, with a reasonable
# user interface.
-FILESYSTEMS="/tmp/filesystems" # used throughout
-FQDN= # domain name
+# A list of devices holding filesystems and the associated mount points
+# is kept in the file named FILESYSTEMS.
+FILESYSTEMS="/tmp/filesystems"
+
+# The Fully Qualified Domain Name
+FQDN=
trap "umount /tmp > /dev/null 2>&1" 0
@@ -337,9 +341,9 @@ mount | while read line; do
fi
done
-resp= # force one iteration
echo
echo 'Please enter the initial password that the root account will have.'
+resp=
while [ "X${resp}" = X"" ]; do
echo -n "Password (will not echo): "
stty -echo