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.
This commit is contained in:
Matthew Dillon 1999-01-25 18:26:09 +00:00
parent 5ab0c62f95
commit b1cba377b0

View File

@ -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 <sys/param.h>
@ -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