diff options
author | ps <ps@FreeBSD.org> | 2000-04-20 00:06:15 +0000 |
---|---|---|
committer | ps <ps@FreeBSD.org> | 2000-04-20 00:06:15 +0000 |
commit | 4422f2d83bb4ca051d794f962ed3fdebf99fcddb (patch) | |
tree | c0e175580c51dd8f88fefc4346bdb40d530d84f6 /sys/boot/i386/loader/main.c | |
parent | b86f59222971ce8e1ded778420f9d916dd650e5a (diff) | |
download | FreeBSD-src-4422f2d83bb4ca051d794f962ed3fdebf99fcddb.zip FreeBSD-src-4422f2d83bb4ca051d794f962ed3fdebf99fcddb.tar.gz |
Add a cleanup function. This is needed for PXE where you should
shutdown the UNDI and unload the stack.
Diffstat (limited to 'sys/boot/i386/loader/main.c')
-rw-r--r-- | sys/boot/i386/loader/main.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/boot/i386/loader/main.c b/sys/boot/i386/loader/main.c index db35e59..721a664 100644 --- a/sys/boot/i386/loader/main.c +++ b/sys/boot/i386/loader/main.c @@ -225,6 +225,11 @@ COMMAND_SET(reboot, "reboot", "reboot the system", command_reboot); static int command_reboot(int argc, char *argv[]) { + int i; + + for (i = 0; devsw[i] != NULL; ++i) + if (devsw[i]->dv_cleanup != NULL) + (devsw[i]->dv_cleanup)(); printf("Rebooting...\n"); delay(1000000); |