commit | a6595313e8d94e62fc31d3cc7b199b8cac9250bb | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Sat Mar 18 01:50:48 2017 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Sat Mar 18 01:50:49 2017 +0000 |
tree | 661916fda0e20017f9d2fed6d01cd60257936dcf | |
parent | 51893f20564cb04b1469c17fb9c73e4877ddab0c [diff] | |
parent | 21ad7cf1049e181e67b0c0da4d048722b7b5da3a [diff] |
Merge "powerctl: add thermal-shutdown command"
diff --git a/init/builtins.cpp b/init/builtins.cpp index 0b2e761..43eb378 100644 --- a/init/builtins.cpp +++ b/init/builtins.cpp
@@ -718,6 +718,9 @@ } else if (strncmp(command, "reboot", 6) == 0) { cmd = ANDROID_RB_RESTART2; len = 6; + } else if (strncmp(command, "thermal-shutdown", 16) == 0) { + cmd = ANDROID_RB_THERMOFF; + len = 16; } else { LOG(ERROR) << "powerctl: unrecognized command '" << command << "'"; return -EINVAL;