head	1.3;
access;
symbols
	RELENG_5_5_0_RELEASE:1.2
	RELENG_5_5:1.2.0.14
	RELENG_5_5_BP:1.2
	RELENG_5_4_0_RELEASE:1.2
	RELENG_5_4:1.2.0.12
	RELENG_5_4_BP:1.2
	RELENG_5_3_0_RELEASE:1.2
	RELENG_5_3:1.2.0.10
	RELENG_5_3_BP:1.2
	RELENG_5:1.2.0.8
	RELENG_5_BP:1.2
	RELENG_5_2_1_RELEASE:1.2
	RELENG_5_2_0_RELEASE:1.2
	RELENG_5_2:1.2.0.6
	RELENG_5_2_BP:1.2
	RELENG_5_1_0_RELEASE:1.2
	RELENG_5_1:1.2.0.4
	RELENG_5_1_BP:1.2
	RELENG_5_0_0_RELEASE:1.2
	RELENG_5_0:1.2.0.2
	RELENG_5_0_BP:1.2
	head_20020621:1.1.1.2
	head_20010615:1.1.1.1
	NETBSD:1.1.1;
locks; strict;
comment	@# @;


1.3
date	2005.06.06.02.51.26;	author obrien;	state dead;
branches;
next	1.2;

1.2
date	2002.06.13.22.14.36;	author gordon;	state Exp;
branches;
next	1.1;

1.1
date	2001.06.16.07.16.14;	author obrien;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2001.06.16.07.16.14;	author obrien;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2002.06.21.19.07.21;	author obrien;	state Exp;
branches;
next	;


desc
@@


1.3
log
@Remove RCng files that were brought in from NetBSD, but we ended up not
using them (or did and no longer do).
@
text
@#!/bin/sh
#
# $NetBSD: sysdb,v 1.9 2002/03/22 04:34:00 thorpej Exp $
# $FreeBSD: src/etc/rc.d/sysdb,v 1.2 2002/06/13 22:14:36 gordon Exp $
#

# PROVIDE: sysdb
# REQUIRE: mountcritremote
# BEFORE:  DAEMON

. /etc/rc.subr

name="sysdb"
start_cmd="sysdb_start"
stop_cmd=":"

sysdb_start()
{
	#	Build ps databases. If this kernel supports
	#	machdep.booted_kernel, use that to build the KVM db so dmesg
	#	will run work when we boot /netbsd.new, etc.
	#
	echo "Building databases..."
	booted_kernel=`sysctl -n machdep.booted_kernel 2>/dev/null`
	kvm_mkdb "${booted_kernel:-/netbsd}"
	dev_mkdb

	#	Re-create /var/run/utmp, which is deleted by mountcritlocal
	#	but can't be recreated by it because install and chown may
	#	not be available then (possibly no /usr).
	#
	install -c -m 664 -g utmp /dev/null /var/run/utmp
}

load_rc_config $name
run_rc_command "$1"
@


1.2
log
@Merge in all the changes that Mike Makonnen has been maintaining for a
while. This is only the script pieces, the glue for the build comes next.

Submitted by:	Mike Makonnen <makonnen@@pacbell.net>
Reviewed by:	silence on -current and -hackers
Prodded by:	rwatson
@
text
@d4 1
a4 1
# $FreeBSD$
@


1.1
log
@Initial revision
@
text
@d3 2
a4 1
# $NetBSD: sysdb,v 1.6 2000/10/09 05:02:14 nisimura Exp $
d9 1
d25 1
a25 1
	kvm_mkdb ${booted_kernel:-/netbsd}
@


1.1.1.1
log
@Import the NetBSD 1.5 RC system.

Note that `rc' and `rc.shutdown' could not be imported because we already
have files with those names.
@
text
@@


1.1.1.2
log
@Sync with NetBSD's mainline.
@
text
@d3 1
a3 1
# $NetBSD: sysdb,v 1.8 2001/04/16 01:38:15 lukem Exp $
a7 1
# BEFORE:  DAEMON
d23 1
a23 1
	kvm_mkdb "${booted_kernel:-/netbsd}"
@

