[Pkg-bluetooth-maintainers] Bug#567640: bluez: init script fails trying to write to /sys/class/rfkill/rfkill1/state

Guus Sliepen guus at debian.org
Sat Jan 30 11:57:34 UTC 2010


Package: bluez
Version: 4.60-1
Severity: important

The bluez package fails to upgrade properly on my system, and would otherwise
give problems when booting on some systems:

Starting bluetooth:/etc/init.d/bluetooth: 199: cannot create /sys/class/rfkill/rfkill1/state: Directory nonexistent
invoke-rc.d: initscript bluetooth, action "start" failed.

The /etc/init.d/bluetooth script contains this line:

	echo 1 >/sys/class/rfkill/rfkill1/state

This fails if that file does not exist, for example if there is no rfkill
function for a bluetooth device, or a bluetooth device is not plugged in when
booting, or if the bluetooth rfkill switch has a different name than rfkill1.
Also, there could be more than one bluetooth device, in which case not all of
them are switched on, or another device (a wifi card for example) could use
rfkill1, or maybe the user only wants to turn it on/off manually when
necessary.  In short, I think it's a bad idea to try to write to rfkill state
files in the bluetooth init script.


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

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

Versions of packages bluez depends on:
ii  dbus                         1.2.16-2    simple interprocess messaging syst
ii  libbluetooth3                4.60-1      Library to use the BlueZ Linux Blu
ii  libc6                        2.10.2-5    Embedded GNU C Library: Shared lib
ii  libdbus-1-3                  1.2.16-2    simple interprocess messaging syst
ii  libglib2.0-0                 2.22.4-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-14 userspace USB programming library
ii  lsb-base                     3.2-23      Linux Standard Base 3.2 init scrip
ii  makedev                      2.3.1-89    creates device files in /dev
ii  module-init-tools            3.12~pre1-1 tools for managing Linux kernel mo
ii  udev                         150-2       /dev/ and hotplug management daemo

bluez recommends no packages.

Versions of packages bluez suggests:
ii  python-dbus                  0.83.0-1+b1 simple interprocess messaging syst
ii  python-gobject               2.20.0-1+b1 Python bindings for the GObject li

-- no debconf information





More information about the Pkg-bluetooth-maintainers mailing list