[Pkg-bluetooth-maintainers] Bug#406624: BLUETOOTH_ENABLED=0 still stop script is run

Soeren Sonnenburg bugreports at nn7.de
Fri Jan 12 11:54:24 UTC 2007


Package: bluez-utils
Version: 3.7-1
Severity: grave
Tags: patch

This caused a hang on reboot/shutdown here. 

Trivial fix follows:


--- bluetooth.orig	2006-10-09 15:55:01.000000000 +0200
+++ bluetooth	2007-01-12 12:51:52.000000000 +0100
@@ -222,6 +222,9 @@
     ;;
   stop)
 	log_daemon_msg "Stopping $DESC"
+	if test "$BLUETOOTH_ENABLED" == "0"; then
+		exit 0
+	fi
 	stop_pan || true
 	stop_rfcomm || true
 	disable_hci_input || true

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (700, 'stable'), (650, 'testing'), (600, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.19-mactel-sonne
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages bluez-utils depends on:
ii  dbus                        1.0.2-1      simple interprocess messaging syst
ii  libbluetooth2               3.7-1        Library to use the BlueZ Linux Blu
ii  libc6                       2.3.6.ds1-10 GNU C Library: Shared libraries
ii  libdbus-1-3                 1.0.2-1      simple interprocess messaging syst
ii  libusb-0.1-4                2:0.1.12-2   userspace USB programming library
ii  lsb-base                    3.1-22       Linux Standard Base 3.1 init scrip
ii  makedev                     2.3.1-83     creates device files in /dev
ii  module-init-tools           3.3-pre4-1   tools for managing Linux kernel mo
ii  modutils                    2.4.27.0-6   Linux module utilities
ii  udev                        0.103-2      /dev/ and hotplug management daemo

Versions of packages bluez-utils recommends:
pn  bluez-passkey-gnome           <none>     (no description available)

-- no debconf information




More information about the Pkg-bluetooth-maintainers mailing list