Home | History | Annotate | Download | only in init

Lines Matching defs:command

381     int fd = open("/cache/recovery/command", O_RDWR|O_CREAT|O_TRUNC|O_CLOEXEC, 0600);
387 ERROR("could not open /cache/recovery/command\n");
557 char command[PROP_VALUE_MAX];
563 res = expand_props(command, args[1], sizeof(command));
569 if (strncmp(command, "shutdown", 8) == 0) {
572 } else if (strncmp(command, "reboot", 6) == 0) {
576 ERROR("powerctl: unrecognized command '%s'\n", command);
580 if (command[len] == ',') {
581 reboot_target = &command[len + 1];
582 } else if (command[len] == '\0') {
585 ERROR("powerctl: unrecognized reboot target '%s'\n", &command[len]);