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/vax/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/vax/install.md')
-rw-r--r-- | distrib/vax/install.md | 29 |
1 files changed, 3 insertions, 26 deletions
diff --git a/distrib/vax/install.md b/distrib/vax/install.md index 52200391b73..85234eb53d5 100644 --- a/distrib/vax/install.md +++ b/distrib/vax/install.md @@ -1,4 +1,4 @@ -# $OpenBSD: install.md,v 1.14 2002/05/14 01:49:25 krw Exp $ +# $OpenBSD: install.md,v 1.15 2002/05/18 17:56:03 krw Exp $ # $NetBSD: install.md,v 1.3.2.5 1996/08/26 15:45:28 gwr Exp $ # # @@ -43,36 +43,13 @@ # Machine-dependent install sets MDSETS=kernel MDTERM=vt100 +MDDISKDEVS="'/^[hs]d[0-9] /s/ .*//p;/^r[al][0-9] /s/ .*//p'" +MDCDDEVS="'/^cd[0-9] /s/ .*//p;/^ra[0-9] .* RRD40$/s/ .*//p'" ARCH=ARCH md_set_term() { } -md_get_msgbuf() { - # Only want to see one boot's worth of info - dmesg > /tmp/msgbuf - sed -n -f /dev/stdin /tmp/msgbuf <<- OOF - /^OpenBSD /h - /^OpenBSD /!H - \${ - g - p - } - OOF -} - -md_get_diskdevs() { - # return available disk devices - md_get_msgbuf |sed -n -e '/^[hs]d[0-9] /{s/ .*//;p;}' \ - -e '/^r[al][0-9] /{s/ .*//;p;}' -} - -md_get_cddevs() { - # return available CDROM devices - md_get_msgbuf | sed -n -e '/^cd[0-9] /{s/ .*//;p;}' \ - -e '/^ra[0-9] .* RRD40$/{s/ .*//;p;}' -} - md_questions() { : } |