summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Zongker <dougz@google.com>2013-08-30 21:20:16 +0200
committerDoug Zongker <dougz@google.com>2013-08-30 21:20:16 +0200
commit77ea71d6a85a93c9bf423466e87661b1bf67c512 (patch)
tree9b82ab892462977b8cc5ed5d7b27db6e602b7110
parentrecovery: install packages in a known mount environment (diff)
downloadandroid_bootable_recovery-77ea71d6a85a93c9bf423466e87661b1bf67c512.tar
android_bootable_recovery-77ea71d6a85a93c9bf423466e87661b1bf67c512.tar.gz
android_bootable_recovery-77ea71d6a85a93c9bf423466e87661b1bf67c512.tar.bz2
android_bootable_recovery-77ea71d6a85a93c9bf423466e87661b1bf67c512.tar.lz
android_bootable_recovery-77ea71d6a85a93c9bf423466e87661b1bf67c512.tar.xz
android_bootable_recovery-77ea71d6a85a93c9bf423466e87661b1bf67c512.tar.zst
android_bootable_recovery-77ea71d6a85a93c9bf423466e87661b1bf67c512.zip
Diffstat (limited to '')
-rw-r--r--etc/init.rc3
-rw-r--r--recovery.cpp2
2 files changed, 4 insertions, 1 deletions
diff --git a/etc/init.rc b/etc/init.rc
index b26d2ae73..9d1da1d6a 100644
--- a/etc/init.rc
+++ b/etc/init.rc
@@ -38,6 +38,9 @@ on boot
class_start default
+on property:sys.powerctl=*
+ powerctl ${sys.powerctl}
+
service ueventd /sbin/ueventd
critical
diff --git a/recovery.cpp b/recovery.cpp
index 654a66526..b78339314 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -1062,6 +1062,6 @@ main(int argc, char **argv) {
// Otherwise, get ready to boot the main system...
finish_recovery(send_intent);
ui->Print("Rebooting...\n");
- android_reboot(ANDROID_RB_RESTART, 0, 0);
+ property_set(ANDROID_RB_PROPERTY, "");
return EXIT_SUCCESS;
}