diff options
author | Todd T. Fries <todd@cvs.openbsd.org> | 1998-07-20 08:02:57 +0000 |
---|---|---|
committer | Todd T. Fries <todd@cvs.openbsd.org> | 1998-07-20 08:02:57 +0000 |
commit | dde7dba6d5a2dd43f1667e896939b70d3c07230b (patch) | |
tree | 5c924f187b19ba0742e337fa24b4ddace33b806f /distrib | |
parent | 724994c8c9029684bb33c01eaaa76a2461b1c3e5 (diff) |
o sparcs can have msgbuf's carried over from one boot to another.
only use the last msgbuf based upon alpha install.md
o we have ie0 le0 be0 and hme0 on sparc not just le0.
Diffstat (limited to 'distrib')
-rw-r--r-- | distrib/sparc/install.md | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/distrib/sparc/install.md b/distrib/sparc/install.md index 1e5a6892cf9..1c515224204 100644 --- a/distrib/sparc/install.md +++ b/distrib/sparc/install.md @@ -1,4 +1,4 @@ -# $OpenBSD: install.md,v 1.19 1998/07/16 22:27:46 deraadt Exp $ +# $OpenBSD: install.md,v 1.20 1998/07/20 08:02:56 todd Exp $ # $NetBSD: install.md,v 1.3.2.5 1996/08/26 15:45:28 gwr Exp $ # # @@ -93,27 +93,40 @@ __mfs_failed_1 fi } +md_get_msgbuf() { + # Only want to see one boot's worth of info + sed -n -f /dev/stdin $MSGBUF <<- OOF + /^Copyright (c)/h + /^Copyright (c)/!H + \${ + g + p + } + OOF +} + md_machine_arch() { cat /kern/machine } md_get_diskdevs() { # return available disk devices - # dmesg | egrep "(^sd[0-9] |^x[dy][0-9] )" | cut -d" " -f1 | sort -u - sed -n -e '1,/^OpenBSD /d' -e '/^sd[0-9] /{s/ .*//;p;}' \ - -e '/^x[dy][0-9] /{s/ .*//;p;}' < $MSGBUF + md_get_msgbuf | sed -n -e '1,/^OpenBSD /d' \ + -e '/^sd[0-9] /{s/ .*//;p;}' \ + -e '/^x[dy][0-9] /{s/ .*//;p;}' } md_get_cddevs() { # return available CDROM devices - # dmesg | grep "^cd[0-9] " | cut -d" " -f1 | sort -u - sed -n -e '1,/^OpenBSD /d' -e '/^cd[0-9] /{s/ .*//;p;}' < $MSGBUF + md_get_msgbuf | sed -n -e '1,/^OpenBSD /d' \ + -e '/^cd[0-9] /{s/ .*//;p;}' } md_get_ifdevs() { # return available network devices - # dmesg | egrep "(^le[0-9] |^ie[0-9] |^hme[0-9] |^be[0-9])" | cut -d" " -f1 | sort -u - sed -n -e '1,/^OpenBSD /d' -e '/^le[0-9] /{s/ .*//;p;}'< $MSGBUF + md_get_msgbuf | sed -n -e '1,/^OpenBSD /d' \ + -e '/^[bli]e[0-9] /{s/ .*//;p;}' \ + -e '/^hme[0-9] /{s/ .*//;p;}' } md_get_partition_range() { |