summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--preinit.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/preinit.c b/preinit.c
index f322be1..c015ebd 100644
--- a/preinit.c
+++ b/preinit.c
@@ -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");