diff options
author | dillon <dillon@FreeBSD.org> | 1999-01-25 18:26:09 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 1999-01-25 18:26:09 +0000 |
commit | 1d5feb459347584a49942a074f6b9eddd22ee9b4 (patch) | |
tree | 0fe82def1c7f0391173e6b37ad5104ae9e643e52 | |
parent | 85a03a844992f324c78947c6493e815bf805f68d (diff) | |
download | FreeBSD-src-1d5feb459347584a49942a074f6b9eddd22ee9b4.zip FreeBSD-src-1d5feb459347584a49942a074f6b9eddd22ee9b4.tar.gz |
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.
-rw-r--r-- | sys/kern/kern_mib.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/kern/kern_mib.c b/sys/kern/kern_mib.c index 22fcd33..48f42dc 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 <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 |