summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2014-06-24 13:43:39 -0700
committerColin Cross <ccross@android.com>2014-06-24 13:43:39 -0700
commit22bcf97a5949816db85242157cb2640feed73616 (patch)
tree976189b7ab045f74c680eae4ff092a3f8075530f /etc
parentb9afc2bf15822d09af188912ac27bd81bf078394 (diff)
downloadbootable_recovery-22bcf97a5949816db85242157cb2640feed73616.zip
bootable_recovery-22bcf97a5949816db85242157cb2640feed73616.tar.gz
bootable_recovery-22bcf97a5949816db85242157cb2640feed73616.tar.bz2
recovery: enable panic_on_oops
Set panic_on_oops=1 to reboot if the kernel panics. Change-Id: Id9e8689a570229db2ea2a3d72b52784f8a1ed107
Diffstat (limited to 'etc')
-rw-r--r--etc/init.rc2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/init.rc b/etc/init.rc
index 8ed0038..23aca5a 100644
--- a/etc/init.rc
+++ b/etc/init.rc
@@ -28,6 +28,8 @@ on init
chown root shell /tmp
chmod 0775 /tmp
+ write /proc/sys/kernel/panic_on_oops 1
+
on fs
mkdir /dev/usb-ffs 0770 shell shell
mkdir /dev/usb-ffs/adb 0770 shell shell