diff --git a/sys/kern/kern_shutdown.c b/sys/kern/kern_shutdown.c --- a/sys/kern/kern_shutdown.c +++ b/sys/kern/kern_shutdown.c @@ -111,6 +111,10 @@ SYSCTL_INT(_kern, OID_AUTO, panic_reboot_wait_time, CTLFLAG_RWTUN, &panic_reboot_wait_time, 0, "Seconds to wait before rebooting after a panic"); +static int reboot_wait_time = 0; +SYSCTL_INT(_kern, OID_AUTO, reboot_wait_time, CTLFLAG_RWTUN, + &reboot_wait_time, 0, + "Seconds to wait before rebooting"); /* * Note that stdarg.h and the ANSI style va_start macro is used for both @@ -710,7 +714,7 @@ { printf("Rebooting...\n"); - DELAY(1000000); /* wait 1 sec for printf's to complete and be read */ + DELAY(reboot_wait_time * 1000000); /* * Acquiring smp_ipi_mtx here has a double effect: