freebsd5/sys/kern/kern_shutdown.c
/*
 * If the shutdown was a clean halt, behave accordingly.
 */
If the shutdown was a clean halt, behave accordingly.
If the shutdown was a clean halt behave accordingly .
static void
shutdown_halt(void *junk, int howto)
{
	if (howto & RB_HALT) {
		printf("\n");
		printf("The operating system has halted.\n");
		printf("Please press any key to reboot.\n\n");
		switch (cngetc()) {
		case -1:		
			cpu_halt();
		default:
			howto &= ~RB_HALT;
			break;
		}
	}
}
static void shutdown_halt ( void * junk , int howto ) { if ( howto & RB_HALT ) { printf ( " \n " ) ; printf ( " \n " ) ; printf ( " \n \n " ) ; switch ( cngetc ( ) ) { case -1 : cpu_halt ( ) ; default : howto &= ~ RB_HALT ; break ; } } }
If the shutdown was a clean halt, behave accordingly.
If the shutdown was a clean halt behave accordingly .
/* No console, just die */ /* NOTREACHED */