gpe-bluetooth-0.54: add BTS support to hciattach script
authorPhilipp Zabel <philipp.zabel@gmail.com>
Thu, 24 Aug 2006 18:02:25 +0000 (18:02 +0000)
committerPhilipp Zabel <philipp.zabel@gmail.com>
Thu, 24 Aug 2006 18:02:25 +0000 (18:02 +0000)
packages/gpe-bluetooth/files/hciattach-bts.patch [new file with mode: 0644]
packages/gpe-bluetooth/gpe-bluetooth_0.54.bb

diff --git a/packages/gpe-bluetooth/files/hciattach-bts.patch b/packages/gpe-bluetooth/files/hciattach-bts.patch
new file mode 100644 (file)
index 0000000..aeff8b0
--- /dev/null
@@ -0,0 +1,16 @@
+--- gpe-bluetooth-0.54/hciattach.sh.orig       2006-08-20 15:04:05.341384325 +0200
++++ gpe-bluetooth-0.54/hciattach.sh    2006-08-20 15:05:04.629179674 +0200
+@@ -2,8 +2,12 @@
+ if [ -f /etc/sysconfig/bluetooth ]; then
+   . /etc/sysconfig/bluetooth
++  if [ -f "$BLUETOOTH_SCRIPT" ]; then
++    BTS="-S $BLUETOOTH_SCRIPT"
++  fi
++
++  exec /sbin/hciattach -n $BLUETOOTH_PORT $BLUETOOTH_PROTOCOL $BLUETOOTH_SPEED $BTS
+-  exec /sbin/hciattach -n $BLUETOOTH_PORT $BLUETOOTH_PROTOCOL $BLUETOOTH_SPEED
+ else
+   echo "Bluetooth not configured"
+   exit 1
index 1506bd4..b02be32 100644 (file)
@@ -3,7 +3,7 @@ DESCRIPTION = "GPE bluetooth support user interface tool."
 SECTION     = "gpe"
 PRIORITY    = "optional"
 MAINTAINER  = "Florian Boor <florian.boor@kernelconcepts.de>"
-PR          = "r0"
+PR          = "r1"
 
 DEPENDS = "gtk+ libcontactsdb libdisplaymigration libgpewidget openobex libgpevtype bluez-libs sqlite dbus-glib libglade blueprobe bluez-utils-dbus"
 RDEPENDS = "bluez-utils-dbus blueprobe"
@@ -11,4 +11,6 @@ RDEPENDS = "bluez-utils-dbus blueprobe"
 GPE_TARBALL_SUFFIX= "bz2"
 inherit gpe autotools
 
+SRC_URI += "file://hciattach-bts.patch;patch=1"
+
 FILES_${PN} += '${datadir}/bluez-pin'