blob: 3bd9fbbbb7ec5b0d265a898e1ea9fe923790fed5 [file] [log] [blame]
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -08001
2#include <string.h>
3#include <stdio.h>
4#include <stdlib.h>
5
6#include <cutils/properties.h>
7
8int start_main(int argc, char *argv[])
9{
10 char buf[1024];
11 if(argc > 1) {
12 property_set("ctl.start", argv[1]);
13 } else {
14 /* default to "start zygote" "start runtime" */
15 property_set("ctl.start", "zygote");
16 property_set("ctl.start", "runtime");
17 }
18
19 return 0;
20}