diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2002-04-28 14:44:02 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2002-04-28 14:44:02 +0000 |
commit | f011e18a2c4c8d782605da6be8567531730cca40 (patch) | |
tree | 4503d6d69f6d44f4daf7d48703f0813f3d9912b0 /distrib/sparc64 | |
parent | 2f15e29fadc2bc35285820205ae7ff94f2d19be8 (diff) |
Change getresp() into ask().
ask() takes 2 parameters. The first one is the question to
ask the user, and the 2nd is the default answer.
Shrinks and makes the code clearer.
From espie@ with some tweaking, ok deraadt@.
Diffstat (limited to 'distrib/sparc64')
-rw-r--r-- | distrib/sparc64/common/install.md | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/distrib/sparc64/common/install.md b/distrib/sparc64/common/install.md index c7b2690153e..13f45933265 100644 --- a/distrib/sparc64/common/install.md +++ b/distrib/sparc64/common/install.md @@ -1,4 +1,4 @@ -# $OpenBSD: install.md,v 1.6 2002/04/13 02:33:10 deraadt Exp $ +# $OpenBSD: install.md,v 1.7 2002/04/28 14:44:01 krw Exp $ # $NetBSD: install.md,v 1.3.2.5 1996/08/26 15:45:28 gwr Exp $ # # @@ -46,8 +46,7 @@ ARCH=ARCH md_set_term() { test -n "$TERM" && return - echo -n "Specify terminal type [sun]: " - getresp sun + ask "Specify terminal type:" sun TERM=$resp export TERM } @@ -82,8 +81,7 @@ md_get_partition_range() { md_questions() { echo - echo -n "Do you expect to run the X Window System? [y] " - getresp y + ask "Do you expect to run the X Window System?" y case "$resp" in y*|Y*) xfree86=y ;; |