2009-03-04 04:32:55 +01:00
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
#include <cutils/properties.h>
|
|
|
|
|
|
|
|
int start_main(int argc, char *argv[])
|
|
|
|
{
|
|
|
|
char buf[1024];
|
2011-03-05 00:38:40 +01:00
|
|
|
|
2009-03-04 04:32:55 +01:00
|
|
|
if(argc > 1) {
|
|
|
|
property_set("ctl.start", argv[1]);
|
|
|
|
} else {
|
2011-03-05 00:38:40 +01:00
|
|
|
/* defaults to starting the common services stopped by stop.c */
|
|
|
|
property_set("ctl.start", "surfaceflinger");
|
2009-03-04 04:32:55 +01:00
|
|
|
property_set("ctl.start", "zygote");
|
|
|
|
}
|
2011-03-05 00:38:40 +01:00
|
|
|
|
2009-03-04 04:32:55 +01:00
|
|
|
return 0;
|
|
|
|
}
|