OSDN Git Service

init.rc: updated donut-x86
authorChih-Wei Huang <cwhuang@linux.org.tw>
Mon, 13 Sep 2010 03:33:40 +0000 (11:33 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Mon, 13 Sep 2010 03:33:40 +0000 (11:33 +0800)
* Initialize alsa properly
* Automatically start ppp on sim card ready

init.rc

diff --git a/init.rc b/init.rc
index c070ce5..3172fa0 100644 (file)
--- a/init.rc
+++ b/init.rc
@@ -213,6 +213,9 @@ service zygote /system/bin/app_process -Xzygote /system/bin --zygote --start-sys
     onrestart write /sys/android_power/request_state wake
     onrestart write /sys/power/state on
 
+service alsainit /system/bin/alsa_ctl init
+    oneshot
+
 service media /system/bin/mediaserver
     user media
     group system audio camera graphics inet net_bt net_bt_admin
@@ -266,6 +269,12 @@ service ppp /system/bin/pppd call gprs
     disabled
     oneshot
 
+on property:gsm.sim.state=READY
+    start ppp
+
+on property:gsm.sim.state=UNKNOWN
+    stop ppp
+
 #Please do not change anything below this line. If you want to add new service, add it above this line
 #REMOVE FROM HERE
 service dhcpcd /system/bin/dhcpcd wlan0