aboutsummaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>1999-12-09 07:57:58 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>1999-12-09 07:57:58 +0000
commit69cfff6fefa0b8973ff59030dd1de5c1b388cfcf (patch)
tree0c69d4ed535388e7050478a8e473ce4ac82a6c25 /init
parent4793354dad40a6f738abc69b66980d0437585fe0 (diff)
downloadbusybox-w32-69cfff6fefa0b8973ff59030dd1de5c1b388cfcf.tar.gz
busybox-w32-69cfff6fefa0b8973ff59030dd1de5c1b388cfcf.tar.bz2
busybox-w32-69cfff6fefa0b8973ff59030dd1de5c1b388cfcf.zip
* Fixed rebooting from init. I'd left some debugging code in
which blocked reboots. Oops. -Erik git-svn-id: svn://busybox.net/trunk/busybox@180 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'init')
-rw-r--r--init/init.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/init/init.c b/init/init.c
index 164ee69a3..d2e9a7e97 100644
--- a/init/init.c
+++ b/init/init.c
@@ -418,7 +418,6 @@ static void halt_signal(int sig)
418 "The system is halted. Press CTRL-ALT-DEL or turn off power\r\n"); 418 "The system is halted. Press CTRL-ALT-DEL or turn off power\r\n");
419 sync(); 419 sync();
420#ifndef DEBUG_INIT 420#ifndef DEBUG_INIT
421 while (1) sleep(1);
422 reboot(RB_HALT_SYSTEM); 421 reboot(RB_HALT_SYSTEM);
423 //reboot(RB_POWER_OFF); 422 //reboot(RB_POWER_OFF);
424#endif 423#endif
@@ -430,7 +429,6 @@ static void reboot_signal(int sig)
430 shutdown_system(); 429 shutdown_system();
431 message(CONSOLE, "Please stand by while rebooting the system.\r\n"); 430 message(CONSOLE, "Please stand by while rebooting the system.\r\n");
432 sync(); 431 sync();
433 while (1) sleep(1);
434#ifndef DEBUG_INIT 432#ifndef DEBUG_INIT
435 reboot(RB_AUTOBOOT); 433 reboot(RB_AUTOBOOT);
436#endif 434#endif