ASR_BASE
Change-Id: Icf3719cc0afe3eeb3edc7fa80a2eb5199ca9dda1
diff --git a/external/subpack/utils/bluez/files/bluetoothd.init b/external/subpack/utils/bluez/files/bluetoothd.init
new file mode 100644
index 0000000..8c548bc
--- /dev/null
+++ b/external/subpack/utils/bluez/files/bluetoothd.init
@@ -0,0 +1,14 @@
+#!/bin/sh /etc/rc.common
+# Copyright (C) 2007 OpenWrt.org
+
+#start after dbus (60)
+START=62
+USE_PROCD=1
+PROG=/usr/bin/bluetoothd
+
+start_service() {
+ ln -snf /etc/bluetooth/keys/ /var/lib/bluetooth
+ procd_open_instance
+ procd_set_param command "$PROG" -n
+ procd_close_instance
+}
diff --git a/external/subpack/utils/bluez/files/givepin b/external/subpack/utils/bluez/files/givepin
new file mode 100644
index 0000000..e52a338
--- /dev/null
+++ b/external/subpack/utils/bluez/files/givepin
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+# Write bluetooth PIN number here:
+pin=
+
+if [ -z "$pin" ]; then
+ msg="Set bluetooth PIN in file $0"
+ logger -p user.err "$msg"
+ for i in /dev/pts/* ; do
+ [ -w $i ] && echo "$msg" > $i
+ done
+else
+ echo "PIN:$pin"
+fi