Lines Matching refs:command
616 char command[PROP_VALUE_MAX];
622 res = expand_props(command, args[1], sizeof(command));
628 if (strncmp(command, "shutdown", 8) == 0) {
631 } else if (strncmp(command, "reboot", 6) == 0) {
635 ERROR("powerctl: unrecognized command '%s'\n", command);
639 if (command[len] == ',') {
640 reboot_target = &command[len + 1];
641 } else if (command[len] == '\0') {
644 ERROR("powerctl: unrecognized reboot target '%s'\n", &command[len]);