summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Swetland <swetland@google.com>2010-10-27 15:40:23 -0700
committerBrian Swetland <swetland@google.com>2010-10-27 15:41:40 -0700
commitb4d65399fde02280b718e3b5b5cb1464a885c4b0 (patch)
tree80b26abac11c8da785d9740d81748a3fd1c7dafb
parent146481b9468ff60214e41c93896259a7201df7cb (diff)
downloadsystem_core-b4d65399fde02280b718e3b5b5cb1464a885c4b0.zip
system_core-b4d65399fde02280b718e3b5b5cb1464a885c4b0.tar.gz
system_core-b4d65399fde02280b718e3b5b5cb1464a885c4b0.tar.bz2
disable console in user builds
Also, run console as shell/log instead of root/root. Change-Id: I6104f1edddfd5e11843ff41d7839d0c296e6a6f9
-rw-r--r--rootdir/init.rc10
1 files changed, 8 insertions, 2 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc
index 2717273..8227273 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -277,11 +277,17 @@ on boot
## Daemon processes to be run by init.
##
+service ueventd /sbin/ueventd
+ critical
+
service console /system/bin/sh
console
+ disabled
+ user shell
+ group log
-service ueventd /sbin/ueventd
- critical
+on property:ro.secure=0
+ start console
# adbd is controlled by the persist.service.adb.enable system property
service adbd /sbin/adbd