From 8d0bf3d6f87b29f449ea4d6c0879c7596055ac73 Mon Sep 17 00:00:00 2001 From: "Jordan K. Hubbard" Date: Fri, 25 Feb 2000 11:43:08 +0000 Subject: [PATCH] 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 --- sys/kern/init_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index e6897adf8a50..b732b904e604 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()