summaryrefslogtreecommitdiff
path: root/sys/kern/init_main.c
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>2001-07-27 09:55:09 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>2001-07-27 09:55:09 +0000
commit2c79e07d9d0b4ed47399ff2f19e7e620c0d22bb5 (patch)
treeea2f1f8609bffdb333048915106144a831973a11 /sys/kern/init_main.c
parentedcb7735c077d88259979d47cac926537a039def (diff)
Startup hooks. Can be used for providing root/swap devices from device
systems which want configuration to finish late, like I2O. Implemented via a general hooks mechanism which the shutdown hooks have been converted to use as well. It even has manpages!
Diffstat (limited to 'sys/kern/init_main.c')
-rw-r--r--sys/kern/init_main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c
index 61f2ade8124..2f6d4da0e1e 100644
--- a/sys/kern/init_main.c
+++ b/sys/kern/init_main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: init_main.c,v 1.72 2001/07/05 10:12:24 art Exp $ */
+/* $OpenBSD: init_main.c,v 1.73 2001/07/27 09:55:07 niklas Exp $ */
/* $NetBSD: init_main.c,v 1.84.4.1 1996/06/02 09:08:06 mrg Exp $ */
/*
@@ -360,6 +360,8 @@ main(framep)
/* Start the scheduler */
scheduler_start();
+ dostartuphooks();
+
/* Configure root/swap devices */
if (md_diskconf)
(*md_diskconf)();