Add missing -n option of sysctl(8) booted_kernel name retrival.

This commit is contained in:
nisimura 2000-10-14 07:33:39 +00:00
parent 1b5ed35b7a
commit 585c4dc3e6
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $NetBSD: sysdb,v 1.6 2000/10/09 05:02:14 nisimura Exp $
# $NetBSD: sysdb,v 1.7 2000/10/14 07:33:39 nisimura Exp $
#
# PROVIDE: sysdb
@ -19,7 +19,7 @@ sysdb_start()
# will run work when we boot /netbsd.new, etc.
#
echo "Building databases..."
booted_kernel=`sysctl machdep.booted_kernel 2>/dev/null`
booted_kernel=`sysctl -n machdep.booted_kernel 2>/dev/null`
kvm_mkdb ${booted_kernel:-/netbsd}
dev_mkdb