Use dmesg(8) directly rather than via kernfs.

This commit is contained in:
tsutsui 2006-03-21 03:38:22 +00:00
parent f9e105a948
commit 17e5a1e5a3
2 changed files with 3 additions and 7 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: dot.profile,v 1.4 2003/07/26 17:06:42 salo Exp $ # $NetBSD: dot.profile,v 1.5 2006/03/21 03:38:22 tsutsui Exp $
# #
# Copyright (c) 1997 Perry E. Metzger # Copyright (c) 1997 Perry E. Metzger
# Copyright (c) 1994 Christopher G. Demetriou # Copyright (c) 1994 Christopher G. Demetriou
@ -74,13 +74,9 @@ if [ "X${DONEPROFILE}" = "X" ]; then
# mount the ramdisk read write # mount the ramdisk read write
mount -u $ROOTDEV / mount -u $ROOTDEV /
# mount the kern_fs so that we can examine the dmesg state
mount -t kernfs /kern /kern
# pull in the functions that people will use from the shell prompt. # pull in the functions that people will use from the shell prompt.
# . /.commonutils # . /.commonutils
# . /.instutils # . /.instutils
dmesg() cat /kern/msgbuf
grep() sed -n "/$1/p" grep() sed -n "/$1/p"
if [ -x /sysinst ]; then if [ -x /sysinst ]; then

View File

@ -1,4 +1,4 @@
# $NetBSD: list,v 1.14 2006/03/21 03:35:49 tsutsui Exp $ # $NetBSD: list,v 1.15 2006/03/21 03:38:22 tsutsui Exp $
SRCDIRS bin sbin usr.bin usr.sbin SRCDIRS bin sbin usr.bin usr.sbin
@ -17,6 +17,7 @@ PROG bin/sh
PROG bin/stty PROG bin/stty
PROG sbin/disklabel PROG sbin/disklabel
PROG sbin/dmesg
PROG sbin/fsck PROG sbin/fsck
PROG sbin/fsck_ffs PROG sbin/fsck_ffs
PROG sbin/ifconfig PROG sbin/ifconfig
@ -25,7 +26,6 @@ PROG sbin/mknod
PROG sbin/mount PROG sbin/mount
PROG sbin/mount_cd9660 PROG sbin/mount_cd9660
PROG sbin/mount_ffs PROG sbin/mount_ffs
PROG sbin/mount_kernfs
PROG sbin/mount_nfs PROG sbin/mount_nfs
PROG sbin/newfs sbin/mount_mfs PROG sbin/newfs sbin/mount_mfs
PROG sbin/ping PROG sbin/ping