summaryrefslogtreecommitdiff
path: root/distrib/miniroot/install.sub
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2002-03-30 00:50:58 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2002-03-30 00:50:58 +0000
commit59e067412fa8c8b8a6196c9d4b3c139b3e4362f4 (patch)
treee44ae7a10d067e6f5745945b701dadb8b93fb35a /distrib/miniroot/install.sub
parent3dd8b456bab9f464ff2e6c1e04abe10b496ecdd9 (diff)
Squeeze a few bytes out of the installation scripts by using
standard __EOT as here document delimiter. Remove unnecessary escaping of __EOT. Could be/Should be extended to .md scripts and other non-miniroot architectures. Concept approved a *long* time ago by deraadt@ and millert@ but never got out of my tree.
Diffstat (limited to 'distrib/miniroot/install.sub')
-rw-r--r--distrib/miniroot/install.sub18
1 files changed, 9 insertions, 9 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub
index 9b8a5703156..caa5ee89a12 100644
--- a/distrib/miniroot/install.sub
+++ b/distrib/miniroot/install.sub
@@ -1,5 +1,5 @@
#!/bin/sh
-# $OpenBSD: install.sub,v 1.189 2002/03/26 01:50:08 krw Exp $
+# $OpenBSD: install.sub,v 1.190 2002/03/30 00:50:57 krw Exp $
# $NetBSD: install.sub,v 1.5.2.8 1996/09/02 23:25:02 pk Exp $
#
# Copyright (c) 1997-2002 Todd Miller, Theo de Raadt, Ken Westerback
@@ -329,12 +329,12 @@ ftp_list_files() {
# log in via ftp to host $1 as user $2 with password $3
# and return a list of all files in the directory $4 on stdout
- ftp ${_ftp_active} -V -n "$1" << __ptf
+ ftp ${_ftp_active} -V -n "$1" << __EOT
user "$2" "$3"
cd "$4"
ls
quit
-__ptf
+__EOT
}
get_localdir() {
@@ -890,7 +890,7 @@ glob_selection() {
fi
# This is safe in single user mode.
_tfile=/tmp/install_case.$$
- cat >$_tfile << OOF
+ cat >$_tfile << __EOT
case \$_f in
$_selection)
# Add/remove file to extraction list
@@ -906,7 +906,7 @@ glob_selection() {
_matched=\$(( \$_matched + 1 ))
;;
esac
-OOF
+__EOT
set +o noglob
# Eww.
@@ -2320,12 +2320,12 @@ donetconfig() {
echo "The host table is as follows:"
echo
cat /tmp/hosts
- cat << __hosts_table_1
+ cat << __EOT
You may want to edit the host table in the event that you are doing an
NFS installation or an FTP installation without a name server and want
to refer to the server by name rather than by its numeric ip address.
-__hosts_table_1
+__EOT
echo -n "Would you like to edit the host table with ${EDITOR}? [n] "
getresp "n"
case "$resp" in
@@ -2338,13 +2338,13 @@ __hosts_table_1
esac
fi
- cat << \__network_config_2
+ cat << __EOT
You will now be given the opportunity to escape to the command shell to do
any additional network configuration you may need. This may include adding
additional routes, if needed. In addition, you might take this opportunity
to redo the default route in the event that it failed above.
-__network_config_2
+__EOT
echo -n "Escape to shell? [n] "
getresp "n"
case "$resp" in