diff options
-rw-r--r-- | preinit.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -29,6 +29,11 @@ static void spawn_procd(struct uloop_process *proc, int ret) { char *wdt_fd = watchdog_fd(); char *argv[] = { "/sbin/procd", NULL }; + struct stat s; + + if (!stat("/tmp/sysupgrade", &s)) + while (true) + sleep(1); unsetenv("INITRAMFS"); unsetenv("PREINIT"); |