X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;f=state.c;h=cf0c81d2c6f19e263eef3ae2a890684c19ead771;hb=cac289316bed4282f798dbe710398e6f53f66f1f;hp=618d75879051a3e042da6763f196a11e599a59d1;hpb=3018420f7fd004b48715100d2f60b27c64d48b75;p=project%2Fprocd.git diff --git a/state.c b/state.c index 618d758..cf0c81d 100644 --- a/state.c +++ b/state.c @@ -63,12 +63,11 @@ static void state_enter(void) case STATE_SHUTDOWN: LOG("- shutdown -\n"); procd_inittab_run("shutdown"); + sync(); break; case STATE_HALT: LOG("- reboot -\n"); - sync(); - sleep(1); reboot(reboot_event); break;