diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2002-05-18 17:56:04 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2002-05-18 17:56:04 +0000 |
commit | 8f7044cbf127a7ac249e1b339722f078b855d609 (patch) | |
tree | 12963ebb8b8f66d825f29e7606084cdde69e11fd /distrib/hp300/ramdisk/install.md | |
parent | 21bbb8cdc8d79bafd5fd05ad8c9f0e91d021929b (diff) |
Eliminate md_get_diskdevs() and md_get_cddevs() by
1) Saving one boot's worth of dmesg in /tmp/dmesg.boot
2) Using sed to scan for devices and pull out names in
new get_diskdevs() and get_cddevs() in install.sub
3) Saving any md disk/cd sed patterns in MDDISKDEVS and
MDCDDEVS variables.
Diffstat (limited to 'distrib/hp300/ramdisk/install.md')
-rw-r--r-- | distrib/hp300/ramdisk/install.md | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/distrib/hp300/ramdisk/install.md b/distrib/hp300/ramdisk/install.md index e9325ef7627..8b141f43d37 100644 --- a/distrib/hp300/ramdisk/install.md +++ b/distrib/hp300/ramdisk/install.md @@ -1,4 +1,4 @@ -# $OpenBSD: install.md,v 1.30 2002/05/14 01:49:25 krw Exp $ +# $OpenBSD: install.md,v 1.31 2002/05/18 17:56:03 krw Exp $ # $NetBSD: install.md,v 1.1.2.4 1996/08/26 15:45:14 gwr Exp $ # # Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -42,22 +42,13 @@ # Machine-dependent install sets MDSETS=kernel MDTERM=hp300h +MDDISKDEVS="'/^hd[0-9][0-9]*:./s/:.*//p;/^sd[0-9][0-9]*:.*cylinders/s/:.*//p'" +MDCDDEVS="'/^sd[0-9][0-9]*:.*CD-ROM/s/:.*//p'" ARCH=ARCH md_set_term() { } -md_get_diskdevs() { - # return available disk devices - dmesg | egrep -a "^hd[0-9]*:." | cutword -t: 1 | sort -u - dmesg | egrep -a "^sd[0-9]*:.*cylinders" | cutword -t: 1 | sort -u -} - -md_get_cddevs() { - # return available CD-ROM devices - dmesg | egrep -a "sd[0-9]*:.*CD-ROM" | cutword -t: 1 | sort -u -} - md_questions() { : } |