Generate bluetooth.rules with the correct prefix

This commit is contained in:
Marcel Holtmann 2009-07-06 10:29:57 -07:00
parent 26547c0b52
commit 1f40f75b32
7 changed files with 12 additions and 51 deletions

1
.gitignore vendored
View File

@ -34,6 +34,7 @@ include/bluetooth
src/bluetoothd
plugins/builtin.h
audio/telephony.c
scripts/bluetooth.rules
sbc/sbcdec
sbc/sbcenc

View File

@ -9,6 +9,9 @@ pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = bluez.pc
DISTCHECK_CONFIGURE_FLAGS = --disable-gtk-doc \
--disable-udevrules
DISTCLEANFILES = $(pkgconfig_DATA)
MAINTAINERCLEANFILES = Makefile.in \

View File

@ -51,18 +51,19 @@ AC_OUTPUT([
common/Makefile
sbc/Makefile
src/Makefile
test/Makefile
cups/Makefile
tools/Makefile
client/Makefile
rfcomm/Makefile
compat/Makefile
plugins/Makefile
network/Makefile
serial/Makefile
input/Makefile
audio/Makefile
tools/Makefile
rfcomm/Makefile
compat/Makefile
scripts/Makefile
cups/Makefile
test/Makefile
scripts/bluetooth.rules
doc/Makefile
doc/version.xml
src/bluetoothd.8

View File

@ -21,8 +21,7 @@ endif
CLEANFILES = $(rules_DATA)
EXTRA_DIST = bluetooth.init bluetooth.default bluetooth.rules \
bluetooth-hid2hci.rules bluetooth-serial.rules bluetooth_serial
EXTRA_DIST = bluetooth-hid2hci.rules bluetooth-serial.rules bluetooth_serial
MAINTAINERCLEANFILES = Makefile.in

View File

@ -1 +0,0 @@
# Bluetooth configuraton file

View File

@ -1,42 +0,0 @@
#!/bin/sh
#
# Start/stop the Bluetooth daemons
#
set -e
PATH=/sbin:/bin:/usr/sbin:/usr/bin
NAME=bluetooth
DESC="Bluetooth subsystem"
DAEMON_NAME=bluetoothd
DAEMON_EXEC="`which $DAEMON_NAME || true`"
DAEMON_ENABLE=true
[ -e /etc/default/bluetooth ] && . /etc/default/bluetooth
case "$1" in
start)
echo -n "Starting $DESC:"
if $DAEMON_ENABLE && [ -x "$DAEMON_EXEC" ]; then
$DAEMON_EXEC
echo -n " $DAEMON_NAME"
fi
echo "."
;;
stop)
echo -n "Stopping $DESC:"
killall $DAEMON_NAME > /dev/null 2>&1 || true
echo -n " $DAEMON_NAME"
echo "."
;;
*)
N=/etc/init.d/$NAME
echo "Usage: $N {start|stop}" >&2
exit 1
;;
esac
exit 0

View File

@ -1,3 +1,3 @@
# Run helper every time a Bluetooth device appears
# On remove actions, bluetoothd should go away by itself
ACTION=="add", SUBSYSTEM=="bluetooth", RUN+="/usr/sbin/bluetoothd --udev"
ACTION=="add", SUBSYSTEM=="bluetooth", RUN+="@prefix@/sbin/bluetoothd --udev"