summaryrefslogtreecommitdiffstats
path: root/sys/kern/init_main.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>2000-02-25 11:43:08 +0000
committerjkh <jkh@FreeBSD.org>2000-02-25 11:43:08 +0000
commit71756b1d368f32f75518f42cb04fb2cb86f40158 (patch)
tree8f522f44d77674bdd0573536f53e8c9aea837211 /sys/kern/init_main.c
parent4f4742024f20d632e88056fc0c53486dc08341ed (diff)
downloadFreeBSD-src-71756b1d368f32f75518f42cb04fb2cb86f40158.zip
FreeBSD-src-71756b1d368f32f75518f42cb04fb2cb86f40158.tar.gz
Add new oid, debug.boothowto. This allows userland apps to see
how the kernel was booted and perhaps do conditional things based upon it (sysinstall, for example, will now turn Debug mode on automatically if boot -v was done). Submitted by: msmith Suggested by: ulf
Diffstat (limited to 'sys/kern/init_main.c')
-rw-r--r--sys/kern/init_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c
index e6897ad..b732b90 100644
--- a/sys/kern/init_main.c
+++ b/sys/kern/init_main.c
@@ -92,6 +92,7 @@ extern struct user *proc0paddr;
struct vnode *rootvp;
int boothowto = 0; /* initialized so that it can be patched */
+SYSCTL_INT(_debug, OID_AUTO, boothowto, CTLFLAG_RD, &boothowto, 0, "");
/*
* Promiscuous argument pass for start_init()
OpenPOWER on IntegriCloud