diff options
author | jkh <jkh@FreeBSD.org> | 2000-02-25 11:43:08 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 2000-02-25 11:43:08 +0000 |
commit | 71756b1d368f32f75518f42cb04fb2cb86f40158 (patch) | |
tree | 8f522f44d77674bdd0573536f53e8c9aea837211 | |
parent | 4f4742024f20d632e88056fc0c53486dc08341ed (diff) | |
download | FreeBSD-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
-rw-r--r-- | sys/kern/init_main.c | 1 |
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() |