OSDN Git Service

generic_x86: save logcat to /data/log.txt if debug.logcat=1
authorChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 9 Dec 2010 08:23:32 +0000 (16:23 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 9 Dec 2010 09:07:20 +0000 (17:07 +0800)
target/board/generic_x86/init.rc

index 2309e25..3c71e85 100644 (file)
@@ -423,8 +423,18 @@ service ppp /system/bin/pppd call gprs
     disabled
     oneshot
 
+service logcat /system/bin/logcat -v time -f /data/log.txt
+    disabled
+    oneshot
+
 on property:gsm.sim.state=READY
     start ppp
 
 on property:gsm.sim.state=UNKNOWN
     stop ppp
+
+on property:debug.logcat=1
+    start logcat
+
+on property:debug.logcat=0
+    stop logcat