OSDN Git Service

enable console unless system_init.startsurfaceflinger=0
authorChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 23 Feb 2012 12:47:46 +0000 (20:47 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 23 Feb 2012 12:47:46 +0000 (20:47 +0800)
generic_x86/init.rc
generic_x86/init.sh

index ac6ac84..c834ada 100644 (file)
@@ -549,10 +549,10 @@ service logcat /system/bin/logcat -v time -f /data/log.txt
 
 on property:system_init.startsurfaceflinger=0
     start surfaceflinger
+    stop console
 
 on property:dev.bootcomplete=1
     start userinit
-    stop console
 
 on property:gsm.sim.state=READY
     start ppp
index 8386848..d794736 100644 (file)
@@ -32,4 +32,4 @@ brfile=$(getprop backlight.brightness_file)
 chown 1000.1000 ${brfile:-/sys/class/backlight/acpi_video0/brightness}
 
 # disable cursor blinking
-echo -e '\033[?17;0;0c' > /dev/tty0
+[ "$(getprop system_init.startsurfaceflinger)" = "0" ] && echo -e '\033[?17;0;0c' > /dev/tty0