Add "slow_start" keyword to init
This keyword will cause init to wait a few seconds before exec'ing
the target binary. Maybe only useful for hacks and debugging.
Change-Id: I85caa0bcbc0be7e48bd21eb9e31e039c0740c8d5
diff --git a/init/init.c b/init/init.c
index 7aef387..ea7687d 100755
--- a/init/init.c
+++ b/init/init.c
@@ -196,6 +196,10 @@
char tmp[32];
int fd, sz;
+ if (svc->flags & SVC_SLOW_START) {
+ sleep(5);
+ }
+
if (properties_inited()) {
get_property_workspace(&fd, &sz);
sprintf(tmp, "%d,%d", dup(fd), sz);