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