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/sparc | |
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/sparc')
-rw-r--r-- | distrib/sparc/install.md | 27 |
1 files changed, 2 insertions, 25 deletions
diff --git a/distrib/sparc/install.md b/distrib/sparc/install.md index 19f00ddf229..dc129d31000 100644 --- a/distrib/sparc/install.md +++ b/distrib/sparc/install.md @@ -1,4 +1,4 @@ -# $OpenBSD: install.md,v 1.41 2002/05/14 01:49:25 krw Exp $ +# $OpenBSD: install.md,v 1.42 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,35 +43,12 @@ # Machine-dependent install sets MDSETS=kernel MDTERM=sun +MDDISKDEVS="'/^sd[0-9] /s/ .*//p;/^x[dy][0-9] /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 '/^sd[0-9] /{s/ .*//;p;}' \ - -e '/^x[dy][0-9] /{s/ .*//;p;}' -} - -md_get_cddevs() { - # return available CDROM devices - md_get_msgbuf | sed -n -e '/^cd[0-9] /{s/ .*//;p;}' -} - md_questions() { : } |