From: Bastien Nocera <hadess@hadess.net>
To: BlueZ development <linux-bluetooth@vger.kernel.org>
Subject: [PATCH] Add udev rules to start bluetooth on-demand
Date: Sun, 21 Jun 2009 14:39:06 +0100 [thread overview]
Message-ID: <1245591547.26486.7101.camel@localhost.localdomain> (raw)
[-- Attachment #1: Type: text/plain, Size: 40 bytes --]
As discussed in previous mails.
Cheers
[-- Attachment #2: 0001-Add-udev-rules-to-start-bluetooth-on-demand.patch --]
[-- Type: text/x-patch, Size: 1094 bytes --]
>From 830639ae0f3421a9d7c7366854925e32001771b5 Mon Sep 17 00:00:00 2001
From: Bastien Nocera <hadess@hadess.net>
Date: Sun, 21 Jun 2009 14:37:32 +0100
Subject: [PATCH] Add udev rules to start bluetooth on-demand
Those rules call bluetoothd --udev when a new dongle is inserted.
---
scripts/96-bluez.rules | 5 +++++
scripts/Makefile.am | 2 ++
2 files changed, 7 insertions(+), 0 deletions(-)
create mode 100644 scripts/96-bluez.rules
diff --git a/scripts/96-bluez.rules b/scripts/96-bluez.rules
new file mode 100644
index 0000000..f3034b5
--- /dev/null
+++ b/scripts/96-bluez.rules
@@ -0,0 +1,5 @@
+# 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"
+
diff --git a/scripts/Makefile.am b/scripts/Makefile.am
index 494a9c2..d87295d 100644
--- a/scripts/Makefile.am
+++ b/scripts/Makefile.am
@@ -11,6 +11,8 @@ endif
if PCMCIARULES
rules_DATA += bluetooth-serial.rules
endif
+
+rules_DATA += 96-bluez.rules
endif
if PCMCIARULES
--
1.6.2.2
next reply other threads:[~2009-06-21 13:39 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-21 13:39 Bastien Nocera [this message]
2009-06-21 13:50 ` [PATCH] Add udev rules to start bluetooth on-demand Marcel Holtmann
2009-06-21 14:05 ` Bastien Nocera
2009-06-21 14:10 ` Marcel Holtmann
2009-06-24 11:35 ` Bastien Nocera
2009-06-24 16:43 ` Marcel Holtmann
2009-06-24 16:44 ` Bastien Nocera
2009-06-24 16:46 ` Marcel Holtmann
2009-06-24 16:52 ` Bastien Nocera
2009-06-27 10:27 ` Marcel Holtmann
2009-06-29 15:03 ` Bastien Nocera
2009-06-30 1:07 ` Marcel Holtmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1245591547.26486.7101.camel@localhost.localdomain \
--to=hadess@hadess.net \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.