OSDN Git Service

init.sh: disable Bluetooth if no hci interface
[android-x86/device-generic-common.git] / init.sh
diff --git a/init.sh b/init.sh
index 0ae2135..ccd1058 100644 (file)
--- a/init.sh
+++ b/init.sh
@@ -377,6 +377,8 @@ function do_netconsole()
 
 function do_bootcomplete()
 {
+       hciconfig | grep -q hci || pm disable com.android.bluetooth
+
        init_cpu_governor
 
        [ -z "$(getprop persist.sys.root_access)" ] && setprop persist.sys.root_access 3