summaryrefslogtreecommitdiff
path: root/distrib/sparc
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2003-09-19 01:05:35 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2003-09-19 01:05:35 +0000
commitb54c147624144f460d90bd19a18589c189c6a19e (patch)
treef808a2ec84432f573dee37b118a118f1496bfd82 /distrib/sparc
parent709dddeae933d9476251e92612b7ee47a7d9f833 (diff)
Excise more unused code.
md_installboot() is only called from one place, with $ROOTDEV as the parameter. $ROOTDEV is guaranteed to be set to a valid device so don't bother testing it. And if the user deliberately unsets ROOTDEV the installboot will fail trying to use /dev/rc.
Diffstat (limited to 'distrib/sparc')
-rw-r--r--distrib/sparc/install.md10
1 files changed, 2 insertions, 8 deletions
diff --git a/distrib/sparc/install.md b/distrib/sparc/install.md
index 7d38d5536aa..b52b347fd8c 100644
--- a/distrib/sparc/install.md
+++ b/distrib/sparc/install.md
@@ -1,4 +1,4 @@
-# $OpenBSD: install.md,v 1.47 2002/11/07 01:28:52 krw Exp $
+# $OpenBSD: install.md,v 1.48 2003/09/19 01:05:34 krw Exp $
# $NetBSD: install.md,v 1.3.2.5 1996/08/26 15:45:28 gwr Exp $
#
#
@@ -48,13 +48,7 @@ md_set_term() {
}
md_installboot() {
- local _rawdev _prefix
-
- if [ -z "$1" ]; then
- echo No disk device specified, you must run installboot manually.
- return
- fi
- _rawdev=/dev/r${1}c
+ local _rawdev=/dev/r${1}c _prefix
# use extracted mdec if it exists (may be newer)
if [ -e /mnt/usr/mdec/boot ]; then