summaryrefslogtreecommitdiff
path: root/packages/blueprobe/blueprobe-0.17/hx4700.patch
blob: f1ee19e9d56ed4c9e28cffd83289d3ca49055685 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- blueprobe-0.17/blueprobe.init.orig	2006-01-22 13:19:14.000000000 +0100
+++ blueprobe-0.17/blueprobe.init	2006-01-22 13:23:21.000000000 +0100
@@ -70,7 +70,8 @@
     "HP iPAQ HX4700")
 	BLUETOOTH=yes
 	PORT=/dev/ttyS1
-	SPEED=115200
+	SCRIPT=/etc/bluetooth/TIInit_3.2.26.bts
+	SPEED='`[ -f "$BLUETOOTH_SCRIPT" ] && echo 921600 || echo 115200`'
 	PROTO=texas
 	PROBE=no
 	;;
@@ -99,6 +100,9 @@
   echo "BLUETOOTH=$BLUETOOTH" >/etc/sysconfig/bluetooth
   if [ $BLUETOOTH = "yes" ]; then
     echo "BLUETOOTH_PORT=$PORT" >>/etc/sysconfig/bluetooth
+    if [ "$SCRIPT" != "" ]; then
+      echo "BLUETOOTH_SCRIPT=$SCRIPT" >>/etc/sysconfig/bluetooth
+    fi
     echo "BLUETOOTH_SPEED=$SPEED" >>/etc/sysconfig/bluetooth
     echo "BLUETOOTH_PROTOCOL=$PROTO" >>/etc/sysconfig/bluetooth
   fi