OSDN Git Service

Add support of RTL8723BS Bluetooth
[android-x86/device-generic-common.git] / init.x86.rc
index ac55e4b..f093310 100644 (file)
@@ -1,4 +1,3 @@
-import /init.bluetooth.rc
 import /init.superuser.rc
 
 on early-init
@@ -14,9 +13,6 @@ on init
     symlink /sdcard /mnt/sdcard
     symlink /sdcard /storage/sdcard0
 
-    # Backward compatibility
-    symlink system/lib /lib
-
 on fs
     mount_all /fstab.${ro.hardware}
 
@@ -35,7 +31,6 @@ on post-fs-data
 
 on boot
     setprop ro.radio.use-ppp yes
-    setprop ro.radio.noril no
     setprop status.battery.state Slow
     setprop status.battery.level 5
     setprop status.battery.level_raw  50
@@ -84,18 +79,30 @@ service iprenew_eth0 /system/bin/dhcpcd -n
     disabled
     oneshot
 
-service nativebridge /system/bin/enable_nativebridge
-    class main
+service dhcpcd_bt-pan /system/bin/dhcpcd -BKLG
+    class late_start
     disabled
     oneshot
 
-service powerbtnd /system/bin/powerbtnd
+service iprenew_bt-pan /system/bin/dhcpcd -n
     class late_start
+    disabled
+    oneshot
+
+service nativebridge /system/bin/enable_nativebridge
+    class main
+    disabled
+    oneshot
 
 service logcat /system/bin/logcat -v threadtime -f /data/log.txt
     class debug
 
-service btattach /system/bin/btattach -Pbcm
+service btattach /system/bin/btattach
+    class main
+    disabled
+    oneshot
+
+service rtk_hciattach /vendor/bin/rtk_hciattach -n -s 115200 /dev/rtk_h5 rtk_h5
     class main
     disabled
     oneshot
@@ -121,12 +128,6 @@ on property:sys.boot_completed=1
     write /proc/sys/kernel/ctrl-alt-del 0
     exec -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh bootcomplete
 
-on property:init.svc.bluetoothd=running
-    exec -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh hci
-
-on property:init.svc.bluetoothd=stopped
-    exec -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh hci
-
 on property:net.dns1=*
     exec -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh netconsole