commit | 3472c1b1309f7ef3b06a63dd58f9556fb687261c | [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 | 1d1de8e282106910bcb67c9750a2df6e830b39be [diff] | |
parent | 16663a2aa45eff3df50df562abdf757fd09bbb7a [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;