summaryrefslogtreecommitdiff
path: root/packages/blueprobe/blueprobe-0.16/hx4700.patch
blob: 69610e8c7be55d9c247ff8015e6de2cabca4088e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
--- blueprobe-0.14/blueprobe.init.orig	2005-09-05 22:03:57 +0200
+++ blueprobe-0.14/blueprobe.init	2005-09-05 22:09:34 +0200
@@ -47,6 +47,18 @@
         PROTO=bcsp
 	PROBE=yes
 	;;
+    "HP iPAQ HX4700")
+	BLUETOOTH=yes
+	PORT=/dev/ttyS1
+	PROTO=texas
+	SCRIPT=/etc/bluetooth/TIInit_3.2.26.bts
+	if [ -f "$SCRIPT" ]; then
+		SPEED=921600
+	else
+		SPEED=115200
+	fi
+	PROBE=no
+	;;
     *)
 	BLUETOOTH=no
         ;;
@@ -67,5 +75,8 @@
     echo "BLUETOOTH_PORT=$PORT" >>/etc/sysconfig/bluetooth
     echo "BLUETOOTH_SPEED=$SPEED" >>/etc/sysconfig/bluetooth
     echo "BLUETOOTH_PROTOCOL=$PROTO" >>/etc/sysconfig/bluetooth
+    if [ "$SCRIPT" != "" ] && [ -f "$SCRIPT" ]; then
+      echo "BLUETOOTH_SCRIPT=$SCRIPT" >>/etc/sysconfig/bluetooth
+    fi
   fi
 fi