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;