invoke shutdown hooks
This commit is contained in:
parent
06514eb892
commit
b86de4fbbd
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.5 1995/04/22 20:24:40 christos Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.6 1995/05/31 20:45:14 cgd Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994, 1995 Carnegie-Mellon University.
|
||||
@ -769,6 +769,9 @@ boot(howto)
|
||||
dumpsys();
|
||||
#endif
|
||||
|
||||
/* run any shutdown hooks */
|
||||
doshutdownhooks();
|
||||
|
||||
haltsys:
|
||||
/* Finally, halt/reboot the system. */
|
||||
printf("%s\n\n", howto & RB_HALT ? "halted." : "rebooting...");
|
||||
|
Loading…
Reference in New Issue
Block a user