From b1cba377b04dccbc500620ffcb05be05735f42d8 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Mon, 25 Jan 1999 18:26:09 +0000 Subject: [PATCH] Add kern.conf_dir sysctl. This is a R+W string used to specify the directory containing rc.conf.local and rc.local, and possibly other things in the future. This sysctl is used by the diskless startup code and new rc.conf. If it cannot be found or is empty, the system should revert to using /etc. --- sys/kern/kern_mib.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sys/kern/kern_mib.c b/sys/kern/kern_mib.c index 22fcd3390873..48f42dca9a32 100644 --- a/sys/kern/kern_mib.c +++ b/sys/kern/kern_mib.c @@ -37,7 +37,7 @@ * SUCH DAMAGE. * * @(#)kern_sysctl.c 8.4 (Berkeley) 4/14/94 - * $Id: kern_mib.c,v 1.15 1998/03/28 11:49:52 dufault Exp $ + * $Id: kern_mib.c,v 1.16 1998/08/31 08:41:52 kato Exp $ */ #include @@ -127,6 +127,11 @@ char hostname[MAXHOSTNAMELEN]; SYSCTL_STRING(_kern, KERN_HOSTNAME, hostname, CTLFLAG_RW, hostname, sizeof(hostname), ""); +char conf_dir[64]; + +SYSCTL_STRING(_kern, OID_AUTO, conf_dir, CTLFLAG_RW, + conf_dir, sizeof(conf_dir), ""); + int securelevel = -1; static int