sysdb revision 1.1
1#!/bin/sh 2# 3# $NetBSD: sysdb,v 1.1 2000/03/10 11:53:24 lukem Exp $ 4# 5 6# PROVIDE: databases 7# REQUIRE: systemfs 8 9. /etc/rc.subr 10. /etc/rc.conf 11 12name="sysdb" 13start_cmd="sysdb_start" 14stop_cmd=":" 15 16sysdb_start() 17{ 18 # Build ps databases. If this kernel supports 19 # machdep.booted_kernel, use that to build the KVM db so dmesg 20 # will run work when we boot /netbsd.new, etc. 21 # 22 echo "Building databases..." 23 sysctl machdep 2>/dev/null | grep -q booted_kernel 24 if [ $? -eq 0 ] ; then 25 kvm_mkdb `sysctl -n machdep.booted_kernel` || kvm_mkdb /netbsd 26 else 27 kvm_mkdb /netbsd 28 fi 29 dev_mkdb 30} 31 32run_rc_command "$1" 33