Use /sbin/dmesg directly rather than kernfs and /kern/msgbuf as other ports.

This commit is contained in:
tsutsui 2011-05-06 18:32:59 +00:00
parent 69de8de8f1
commit dc9f645f7e
2 changed files with 3 additions and 7 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: dot.profile,v 1.2 2010/03/14 12:36:32 nonaka Exp $
# $NetBSD: dot.profile,v 1.3 2011/05/06 18:32:59 tsutsui Exp $
#
# Copyright (c) 1997 Perry E. Metzger
# Copyright (c) 1994 Christopher G. Demetriou
@ -60,13 +60,9 @@ if [ "X${DONEPROFILE}" = "X" ]; then
# mount the ramdisk read write
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.
# . /.commonutils
# . /.instutils
dmesg() cat /kern/msgbuf
grep() sed -n "/$1/p"
# run the installation or upgrade script.

View File

@ -1,4 +1,4 @@
# $NetBSD: list,v 1.15 2011/05/05 09:07:59 nonaka Exp $
# $NetBSD: list,v 1.16 2011/05/06 18:32:59 tsutsui Exp $
# usr.bin/less has to be first, otherwise the ramdisk.mk generation fails
SRCDIRS usr.bin/less bin sbin usr.bin usr.sbin gnu/usr.bin
@ -24,6 +24,7 @@ PROG bin/sync
PROG sbin/chown bin/chgrp
PROG sbin/disklabel
PROG sbin/dmesg
PROG sbin/fdisk
PROG sbin/fsck
PROG sbin/fsck_ffs
@ -32,7 +33,6 @@ PROG sbin/init
PROG sbin/mknod
PROG sbin/mount
PROG sbin/mount_ffs
PROG sbin/mount_kernfs
PROG sbin/mount_msdos
PROG sbin/mount_nfs
PROG sbin/newfs sbin/mount_mfs