All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bastien Nocera <hadess@hadess.net>
To: Marcel Holtmann <marcel@holtmann.org>
Cc: BlueZ development <linux-bluetooth@vger.kernel.org>
Subject: Re: [PATCH] Add udev rules to start bluetooth on-demand
Date: Mon, 29 Jun 2009 16:03:00 +0100	[thread overview]
Message-ID: <1246287780.2856.3236.camel@localhost.localdomain> (raw)
In-Reply-To: <1246098460.12994.128.camel@localhost.localdomain>

[-- Attachment #1: Type: text/plain, Size: 1240 bytes --]

On Sat, 2009-06-27 at 12:27 +0200, Marcel Holtmann wrote:
> Hi Bastien,
> 
> > > > > > > > > > As discussed in previous mails.
> > > > > > > > > 
> > > > > > > > > please name it bluetooth.rules. The daemon is also called bluetoothd and
> > > > > > > > > not bluezd.
> > > > > > > > > 
> > > > > > > > > Also you need to have the EXTRA_DIST part in it since _DATA doesn't get
> > > > > > > > > added to the distribution automatically. For all this changes, you have
> > > > > > > > > to check with make distcheck.
> > > > > > > > 
> > > > > > > > Fixed version attached
> > > > > > > 
> > > > > > > we might need to put this into ifndef INITSCRIPTS since it makes no
> > > > > > > sense to install the init script and the udev rule at the same time.
> > > > > > 
> > > > > > Revised patch attached
> > > > > 
> > > > > +
> > > > > +if INISCRIPTS
> > > > > +else
> > > > > +rules_DATA += bluetooth.rules
> > > > >  endif
> > > > 
> > > > ifndef isn't an automake construct.
> > > > 
> > > 
> > > then if !INITSCRIPTS should do it. However I was more asking about the
> > > spelling mistake. You forgot a T ;)
> > 
> > Well, that's embarrassing...
> 
> are you sending a new patch :)

Thought you'd fix the typo, and commit.

Patch attached.

[-- Attachment #2: 0001-Add-udev-rules-to-start-bluetooth-on-demand.patch --]
[-- Type: text/x-patch, Size: 1062 bytes --]

>From 9602419da57953b91e4fcb7a6e3770744154dbef Mon Sep 17 00:00:00 2001
From: Bastien Nocera <hadess@hadess.net>
Date: Mon, 29 Jun 2009 15:54:46 +0100
Subject: [PATCH] Add udev rules to start bluetooth on-demand

Those rules call bluetoothd --udev when a new dongle is inserted.
---
 scripts/Makefile.am |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/scripts/Makefile.am b/scripts/Makefile.am
index 494a9c2..d97b309 100644
--- a/scripts/Makefile.am
+++ b/scripts/Makefile.am
@@ -11,6 +11,10 @@ endif
 if PCMCIARULES
 rules_DATA += bluetooth-serial.rules
 endif
+
+if INITSCRIPTS
+else
+rules_DATA += bluetooth.rules
 endif
 
 if PCMCIARULES
@@ -19,8 +23,13 @@ udevdir = $(libexecdir)/udev
 udev_SCRIPTS = bluetooth_serial
 endif
 
+if INITSCRIPTS
+else
+rules_DATA += bluetooth.rules
+endif
+
 EXTRA_DIST = bluetooth.init bluetooth.default bluetooth-hid2hci.rules \
-				bluetooth-serial.rules bluetooth_serial
+				bluetooth-serial.rules bluetooth_serial bluetooth.rules
 
 MAINTAINERCLEANFILES = Makefile.in
 
-- 
1.6.2.2


  reply	other threads:[~2009-06-29 15:03 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-21 13:39 [PATCH] Add udev rules to start bluetooth on-demand Bastien Nocera
2009-06-21 13:50 ` 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 [this message]
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=1246287780.2856.3236.camel@localhost.localdomain \
    --to=hadess@hadess.net \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=marcel@holtmann.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.