summaryrefslogtreecommitdiff
path: root/sys/arch/i386/boot/sys.c
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1997-01-23 06:42:51 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1997-01-23 06:42:51 +0000
commitf55ab6411c87367d29c866c64f94698552ed733f (patch)
tree774eb4677a6a5265d44d34c5cc019cc824ef2a79 /sys/arch/i386/boot/sys.c
parent8dc8108016f3a8b25734b5da8c4a5776f3a2eae3 (diff)
allow boot from any [0-9] unit (wd+scsi fits now both)
Diffstat (limited to 'sys/arch/i386/boot/sys.c')
-rw-r--r--sys/arch/i386/boot/sys.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/arch/i386/boot/sys.c b/sys/arch/i386/boot/sys.c
index bd22e78f755..cf9d1352a72 100644
--- a/sys/arch/i386/boot/sys.c
+++ b/sys/arch/i386/boot/sys.c
@@ -207,10 +207,11 @@ openrd()
* Look inside brackets for unit number, and partition *
\*******************************************************/
if (*cp >= '0' && *cp <= '9')
- if ((unit = *cp++ - '0') > 1) {
- printf("Bad unit\n");
- return 1;
- }
+ unit = *cp++ - '0'; /* enough for both wd and sd */
+ else {
+ printf("Bad unit\n");
+ return 1;
+ }
if (!*cp || (*cp == ',' && !*++cp))
return 1;
if (*cp >= 'a' && *cp <= 'p')