Home | History | Annotate | Download | only in toolbox
      1 
      2 #include <string.h>
      3 #include <stdio.h>
      4 #include <stdlib.h>
      5 
      6 #include <cutils/properties.h>
      7 
      8 int start_main(int argc, char *argv[])
      9 {
     10     char buf[1024];
     11 
     12     if(argc > 1) {
     13         property_set("ctl.start", argv[1]);
     14     } else {
     15         /* defaults to starting the common services stopped by stop.c */
     16         property_set("ctl.start", "surfaceflinger");
     17         property_set("ctl.start", "zygote");
     18     }
     19 
     20     return 0;
     21 }
     22