summaryrefslogtreecommitdiff
path: root/distrib/mvme88k/ramdisk/install.md
diff options
context:
space:
mode:
Diffstat (limited to 'distrib/mvme88k/ramdisk/install.md')
-rw-r--r--distrib/mvme88k/ramdisk/install.md13
1 files changed, 4 insertions, 9 deletions
diff --git a/distrib/mvme88k/ramdisk/install.md b/distrib/mvme88k/ramdisk/install.md
index f3a7df0f223..8c274a4b9b1 100644
--- a/distrib/mvme88k/ramdisk/install.md
+++ b/distrib/mvme88k/ramdisk/install.md
@@ -1,4 +1,4 @@
-# $OpenBSD: install.md,v 1.21 2003/09/21 02:11:42 krw Exp $
+# $OpenBSD: install.md,v 1.22 2003/10/12 13:18:37 krw Exp $
# Copyright (c) 1996 The NetBSD Foundation, Inc.
# All rights reserved.
#
@@ -56,9 +56,7 @@ md_checkfordisklabel() {
disklabel $1 >/dev/null 2>/tmp/checkfordisklabel
- if grep "no disk label" /tmp/checkfordisklabel; then
- rval=1
- elif grep "disk label corrupted" /tmp/checkfordisklabel; then
+ if grep "disk label corrupted" /tmp/checkfordisklabel; then
rval=2
fi >/dev/null 2>&1
@@ -66,19 +64,16 @@ md_checkfordisklabel() {
return $rval
}
-md_prep_disklabel()
-{
+md_prep_disklabel() {
local _disk=$1
md_checkfordisklabel $_disk
case $? in
- 1) echo "WARNING: Disk $_disk has no label. You will be creating a new one.\n"
- ;;
2) echo "WARNING: Label on disk $_disk is corrupted. You will be repairing it.\n"
;;
esac
- disklabel -W $_disk
+ disklabel -W $_disk >/dev/null 2>&1
disklabel -f /tmp/fstab.$_disk -E $_disk
}