diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2003-09-19 01:05:35 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2003-09-19 01:05:35 +0000 |
commit | b54c147624144f460d90bd19a18589c189c6a19e (patch) | |
tree | f808a2ec84432f573dee37b118a118f1496bfd82 /distrib/sparc64/common | |
parent | 709dddeae933d9476251e92612b7ee47a7d9f833 (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/sparc64/common')
-rw-r--r-- | distrib/sparc64/common/install.md | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/distrib/sparc64/common/install.md b/distrib/sparc64/common/install.md index a95c9e1077c..8368b856668 100644 --- a/distrib/sparc64/common/install.md +++ b/distrib/sparc64/common/install.md @@ -1,4 +1,4 @@ -# $OpenBSD: install.md,v 1.15 2002/11/07 01:28:52 krw Exp $ +# $OpenBSD: install.md,v 1.16 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/bootblk ]; then |