summaryrefslogtreecommitdiff
path: root/distrib/alpha/ramdisk
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-05-09 02:25:09 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-05-09 02:25:09 +0000
commit77a6d1130ef5ff599665c09933f7362000c85df9 (patch)
treee1b15ce73cebfa6b2adbec443c9f671cade1d6e6 /distrib/alpha/ramdisk
parentc60b04177b38f656701badebf48bd418dd2a2d59 (diff)
We only want to look at boot messages from *this* boot. Sed
out the others.
Diffstat (limited to 'distrib/alpha/ramdisk')
-rw-r--r--distrib/alpha/ramdisk/install.md26
1 files changed, 19 insertions, 7 deletions
diff --git a/distrib/alpha/ramdisk/install.md b/distrib/alpha/ramdisk/install.md
index 8afb6e1ae89..b51e6dc2547 100644
--- a/distrib/alpha/ramdisk/install.md
+++ b/distrib/alpha/ramdisk/install.md
@@ -1,4 +1,4 @@
-# $OpenBSD: install.md,v 1.2 1997/05/08 12:49:55 niklas Exp $
+# $OpenBSD: install.md,v 1.3 1997/05/09 02:25:08 millert Exp $
# Copyright (c) 1996 The NetBSD Foundation, Inc.
# All rights reserved.
#
@@ -56,17 +56,29 @@ md_set_term() {
export TERM
}
+md_get_msgbuf() {
+ # Only want to see one boot's worth of info
+ sed -n -f /dev/stdin /kern/msgbuf <<- OOF
+ /^Copyright (c)/h
+ /^Copyright (c)/!H
+ \${
+ g
+ p
+ }
+ OOF
+}
+
md_get_diskdevs() {
- egrep "^sd[0-9] " < /kern/msgbuf
+ md_get_msgbuf | egrep "^sd[0-9] "
}
md_get_cddevs() {
- egrep "^cd[0-9] " < /kern/msgbuf
+ md_get_msgbuf | egrep "^cd[0-9] "
}
-md_get_ifdevs() {
- # return available network devices
- egrep "(^ed[0-9] |^[dl]e[0-9] )"< /kern/msgbuf | cut -d" " -f1 | sort -u
+md_get_ifdevs() {
+ # return available network devices
+ md_get_msgbuf | egrep "(^ed[0-9] |^[dl]e[0-9] )" | cut -d" " -f1 | sort -u
}
md_get_partition_range() {
@@ -263,5 +275,5 @@ FATAL ERROR: Can't mount kernfs filesystem
__kernfs_failed_1
exit
fi
- > ${KERNFSMOUNTED}
+ > ${KERNFSMOUNTED}
}