summaryrefslogtreecommitdiff
path: root/distrib/mvme88k
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2002-05-07 02:03:58 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2002-05-07 02:03:58 +0000
commit8a8b1bf25ac279126dac055da157f8d4308be9ea (patch)
tree01e458c8346fced21a7cb4f47ba9431566eaedfd /distrib/mvme88k
parenta1f2735cbfe67dbe688eff5bb528a34183b29405 (diff)
All architectures now use miniroot, so eliminate last few getresp()
calls in favour of ask(). Fix the erroneous advice I gave to Hugh in vax getresp() -> ask(). ok deraadt@
Diffstat (limited to 'distrib/mvme88k')
-rw-r--r--distrib/mvme88k/ramdisk/install.md15
1 files changed, 6 insertions, 9 deletions
diff --git a/distrib/mvme88k/ramdisk/install.md b/distrib/mvme88k/ramdisk/install.md
index 463e0419832..e607b74931f 100644
--- a/distrib/mvme88k/ramdisk/install.md
+++ b/distrib/mvme88k/ramdisk/install.md
@@ -1,4 +1,4 @@
-# $OpenBSD: install.md,v 1.10 2002/04/25 21:28:13 miod Exp $
+# $OpenBSD: install.md,v 1.11 2002/05/07 02:03:57 krw Exp $
# Copyright (c) 1996 The NetBSD Foundation, Inc.
# All rights reserved.
#
@@ -46,8 +46,7 @@ md_set_term() {
if [ ! -z "$TERM" ]; then
return
fi
- echo -n "Specify terminal type [xterm]: "
- getresp "xterm"
+ ask "Specify terminal type:" xterm
TERM="$resp"
export TERM
}
@@ -123,17 +122,16 @@ md_prep_disklabel()
_disk=$1
md_checkfordisklabel $_disk
case $? in
- 0) echo -n "Do you wish to edit the disklabel on $_disk? [y] "
+ 0) ask "Do you wish to edit the disklabel on $_disk?" y
;;
1) echo "WARNING: Disk $_disk has no label"
- echo -n "Do you want to create one with the disklabel editor? [y] "
+ ask "Do you want to create one with the disklabel editor?" y
;;
2) echo "WARNING: Label on disk $_disk is corrupted"
- echo -n "Do you want to try and repair the damage using the disklabel editor? [y] "
+ ask "Do you want to try and repair the damage using the disklabel editor?" y
;;
esac
- getresp "y"
case "$resp" in
y*|Y*) ;;
*) return ;;
@@ -162,8 +160,7 @@ in case you have defined less than sixteen partitions.
[End of example]
__EOT
- echo -n "Press [Enter] to continue "
- getresp ""
+ ask "Press [Enter] to continue"
disklabel -W ${_disk}
disklabel -f /tmp/fstab.${_disk} -E ${_disk}
}