Package: bluez
Version: 4.69-1
Severity: normal

this bug still exists and is mayor annoyance.
it really shouldn't be to hard to mak the install script ignore a
non-existent bt-dongle.
after all, most devices with built-in bt allow to disable it b/c of
power saving or privacy reasons.
the package should therefore be prepared to meet a non-existent bt
device and install nevertheles cleanly!

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.34.1 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages bluez depends on:
ii  dbus                         1.2.24-3    simple interprocess messaging syst
ii  libbluetooth3                4.69-1      Library to use the BlueZ Linux Blu
ii  libc6                        2.11.2-2    Embedded GNU C Library: Shared lib
ii  libcap-ng0                   0.6.4-1     An alternate posix capabilities li
ii  libdbus-1-3                  1.2.24-3    simple interprocess messaging syst
ii  libglib2.0-0                 2.24.1-1    The GLib library of C routines
ii  libnl1                       1.1-5       library for dealing with netlink s
ii  libusb-0.1-4                 2:0.1.12-15 userspace USB programming library
ii  lsb-base                     3.2-23.1    Linux Standard Base 3.2 init scrip
ii  makedev                      2.3.1-89    creates device files in /dev
ii  module-init-tools            3.12-1      tools for managing Linux kernel mo
ii  udev                         160-1       /dev/ and hotplug management daemo

bluez recommends no packages.

Versions of packages bluez suggests:
ii  python-dbus                   0.83.1-1   simple interprocess messaging syst
ii  python-gobject                2.21.4-1   Python bindings for the GObject li

-- Configuration Files:
/etc/bluetooth/audio.conf changed:
[General]
Enable=Source,Control,Sink
Disable=Gateway
AutoConnect=true
[Headset]
MaxConnections=4
[A2DP]
SourceCount=2
SBCSources=2
MPEG12Sources=2
[AVRCP]
InputDeviceName=AVRCP

/etc/default/bluetooth changed:
HID2HCI_ENABLED=0
HID2HCI_UNDO=0

/etc/init.d/bluetooth changed:
PATH=/sbin:/bin:/usr/sbin:/usr/bin
DESC=bluetooth
DAEMON=/usr/sbin/bluetoothd
HCIATTACH=/usr/sbin/hciattach
HID2HCI=/usr/sbin/hid2hci
HID2HCI_ENABLED=1
HID2HCI_UNDO=1
UART_CONF=/etc/bluetooth/uart
RFCOMM=/usr/bin/rfcomm
RFCOMM_NAME=rfcomm
RFCOMM_CONF=/etc/bluetooth/rfcomm.conf
SDPTOOL=/usr/bin/sdptool
SSD_OPTIONS="--oknodo --quiet --exec $DAEMON"
test -f /etc/default/bluetooth && . /etc/default/bluetooth
test -f /etc/default/rcS && . /etc/default/rcS
.. /lib/lsb/init-functions
set -e
run_sdptool()
{
        test -x $SDPTOOL || return 1
        if ! test -z "$SDPTOOL_OPTIONS" ; then
                oldifs="$IFS"
                IFS=";"
                for o in $SDPTOOL_OPTIONS ; do
                        #echo "execing $SDPTOOL $o"
                        IFS=" "
                        if [ "$VERBOSE" != "no" ]; then
                                $SDPTOOL $o
                        else
                                $SDPTOOL $o >/dev/null 2>&1
                        fi
                done
                IFS="$oldifs"
        fi
}
enable_hci_input()
{
    log_progress_msg "switching to HID/HCI no longer done in init script, see 
/usr/share/doc/bluez/NEWS.Debian.gz"
}
disable_hci_input()
{
    log_progress_msg "switching to HID/HCI no longer done in init script, see 
/usr/share/doc/bluez/NEWS.Debian.gz"
}
start_uarts()
{
        [ -f $HCIATTACH ] && [ -f $UART_CONF ] || return
        grep -v '^#' $UART_CONF | while read i; do
               if [ "$VERBOSE" != no ]; then
                       $HCIATTACH $i
               else
                       $HCIATTACH $i >/dev/null 2>&1
               fi
        done
}
stop_uarts()
{
        killall hciattach > /dev/null 2>&1 || true
}
start_rfcomm()
{
        if [ -x $RFCOMM ] && [ -f $RFCOMM_CONF ] ; then
                # rfcomm must always succeed for now: users
                # may not yet have an rfcomm-enabled kernel
                if [ "$VERBOSE" != no ]; then
                       log_progress_msg "rfcomm"
                       $RFCOMM -f $RFCOMM_CONF bind all || true
                else
                       $RFCOMM -f $RFCOMM_CONF bind all >/dev/null 2>&1 || true
                fi
        fi
}
stop_rfcomm()
{
        if [ -x $RFCOMM ] ; then
               if [ "$VERBOSE" != no ]; then
                       log_progress_msg "rfcomm"
                       $RFCOMM unbind all || true
               else
                       $RFCOMM unbind all >/dev/null 2>&1 || true
               fi
        fi
}
restart_rfcomm()
{
        if [ -x $RFCOMM ] && [ -f $RFCOMM_CONF ] ; then
               if [ "$VERBOSE" != no ]; then
                       log_progress_msg  "rfcomm"
                       $RFCOMM unbind all || true
                       $RFCOMM -f $RFCOMM_CONF bind all || true
               else
                       $RFCOMM unbind all >/dev/null 2>&1|| true
                       $RFCOMM -f $RFCOMM_CONF bind all >/dev/null 2>&1 || true
               fi
        fi
}
case "$1" in
  start)
        log_daemon_msg "Starting $DESC"
        if test "$BLUETOOTH_ENABLED" = "0"; then
                log_progress_msg "disabled. see /etc/default/bluetooth"
                log_end_msg 0
                exit 0
        fi
        log_daemon_msg "rfkill unlock bluetooth"
        /usr/local/bin/rfkill unblock bluetooth
        start-stop-daemon --start $SSD_OPTIONS
        log_progress_msg "bluetoothd"
        run_sdptool || true
        start_uarts || true
        if test "$HID2HCI_ENABLED" = "1"; then
                enable_hci_input || true
        fi
        start_rfcomm || true
        if test "$HIDD_ENABLED" = "1" ||
                        test "$PAND_ENABLED" = "1" ||
                        test "$DUND_ENABLED" = "1"; then
                log_progress_msg "compatibily daemons not started, see 
bluez-compat package"
        fi
        sleep 1 ; /usr/sbin/hciconfig hci0 lm master; /usr/sbin/hciconfig hci0 
lp hold,sniff,park
        
        log_end_msg 0
  ;;
  stop)
        log_daemon_msg "Stopping $DESC"
        if test "$BLUETOOTH_ENABLED" = "0"; then
                log_progress_msg "disabled."
                log_end_msg 0
                exit 0
        fi
        stop_rfcomm || true
        if test "$HID2HCI_UNDO" = "1"; then
                disable_hci_input || true
        fi
        start-stop-daemon --stop $SSD_OPTIONS
        log_progress_msg "bluetoothd"
        stop_uarts || true
        log_end_msg 0
  ;;
  restart|force-reload)
        $0 stop
        sleep 1
        $0 start
  ;;
  status)
        status_of_proc "$DAEMON" "$DESC" && exit 0 || exit $?
  ;;
  *)
        N=/etc/init.d/bluetooth
        # echo "Usage: $N {start|stop|restart|reload|force-reload|status}" >&2
        echo "Usage: $N {start|stop|restart|force-reload|status}" >&2
        exit 1
        ;;
esac
exit 0


-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to