summaryrefslogtreecommitdiff
path: root/distrib/vax/install.md
diff options
context:
space:
mode:
Diffstat (limited to 'distrib/vax/install.md')
-rw-r--r--distrib/vax/install.md13
1 files changed, 6 insertions, 7 deletions
diff --git a/distrib/vax/install.md b/distrib/vax/install.md
index 52fd09d756c..261cafc3073 100644
--- a/distrib/vax/install.md
+++ b/distrib/vax/install.md
@@ -1,4 +1,4 @@
-# $OpenBSD: install.md,v 1.20 2002/11/07 01:28:52 krw Exp $
+# $OpenBSD: install.md,v 1.21 2003/09/21 02:11:42 krw Exp $
# $NetBSD: install.md,v 1.3.2.5 1996/08/26 15:45:28 gwr Exp $
#
#
@@ -54,18 +54,17 @@ md_installboot() {
/sbin/disklabel -B $1
}
+# $1 is the disk to check
md_checkfordisklabel() {
- # $1 is the disk to check
- local rval
+ local rval=0
+
+ disklabel $1 >/dev/null 2>/tmp/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
rval=2
- else
- rval=0
- fi
+ fi >/dev/null 2>&1
rm -f /tmp/checkfordisklabel
return $rval