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
This commit is contained in:
Jordan K. Hubbard 2000-02-25 11:43:08 +00:00
parent 9e6f8bee0e
commit 8d0bf3d6f8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=57483

View File

@ -92,6 +92,7 @@ extern struct user *proc0paddr;
struct vnode *rootvp; struct vnode *rootvp;
int boothowto = 0; /* initialized so that it can be patched */ 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() * Promiscuous argument pass for start_init()