--- bluez-utils-2.7/rfcomm/rfcomm.conf 2004-05-09 03:39:43.000000000 -0700 +++ bluez-utils-2.7/rfcomm/rfcomm.conf-new 2004-07-08 16:45:47.350584546 -0700 @@ -5,15 +5,14 @@ # rfcomm0 { - # Automatically bind the device at startup - bind no; + listen yes; # Bluetooth address of the device - device 11:22:33:44:55:66; + device hci0; # RFCOMM channel for the connection channel 1; # Description of the connection - comment "Example Bluetooth device"; + comment "Gumstix Serial Console"; } --- bluez-utils-2.7/scripts/bluetooth.init 2004-07-08 16:37:01.639390988 -0700 +++ bluez-utils-2.7/scripts/bluetooth.init-new 2004-07-08 16:45:31.517381290 -0700 @@ -15,6 +15,10 @@ HIDD_NAME=hidd HID2HCI_NAME=hid2hci RFCOMM_NAME=rfcomm +RFCOMM_LISTEN_NAME=rfcomm-listen +RFCOMM_GETTY_NAME=rfcomm-getty +RFCOMM_LISTEN=/etc/bluetooth/rfcomm/rfcomm-listen +RFCOMM_GETTY=/etc/bluetooth/rfcomm/rfcomm-getty PAND_NAME=pand DUND_NAME=dund @@ -65,7 +69,9 @@ echo -n " $HID2HCI_NAME" fi if $RFCOMM_ENABLE && [ -x "$RFCOMM_EXEC" -a -f "$RFCOMM_CONFIG" ] ; then - $RFCOMM_EXEC -f $RFCOMM_CONFIG bind all || true + /usr/bin/sdptool add --channel=1 SP > /dev/null 2>&1 + $RFCOMM_LISTEN $RFCOMM_EXEC $RFCOMM_CONFIG > /dev/null 2>&1 & + $RFCOMM_GETTY > /dev/null 2>&1 & echo -n " $RFCOMM_NAME" fi if $DUND_ENABLE && [ -x "$DUND_EXEC" -a -n "$DUND_OPTIONS" ] ; then @@ -92,10 +98,8 @@ echo -n " $PAND_NAME" killall $DUND_NAME > /dev/null 2>&1 || true echo -n " $DUND_NAME" - if [ -x "$RFCOMM_EXEC" ] ; then - $RFCOMM_EXEC release all > /dev/null 2>&1 || true + killall $RFCOMM_GETTY_NAME $RFCOMM_LISTEN_NAME $RFCOMM_NAME > /dev/null 2>&1 || true echo -n " $RFCOMM_NAME" - fi killall $HIDD_NAME > /dev/null 2>&1 || true echo -n " $HIDD_NAME" killall $SDPD_NAME > /dev/null 2>&1 || true