mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-15 00:04:29 +08:00
Generate bluetooth.rules with the correct prefix
This commit is contained in:
parent
26547c0b52
commit
1f40f75b32
1
.gitignore
vendored
1
.gitignore
vendored
@ -34,6 +34,7 @@ include/bluetooth
|
||||
src/bluetoothd
|
||||
plugins/builtin.h
|
||||
audio/telephony.c
|
||||
scripts/bluetooth.rules
|
||||
|
||||
sbc/sbcdec
|
||||
sbc/sbcenc
|
||||
|
@ -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 \
|
||||
|
11
configure.ac
11
configure.ac
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -1 +0,0 @@
|
||||
# Bluetooth configuraton 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
|
@ -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"
|
Loading…
Reference in New Issue
Block a user