From: Andrej Rosano <andrejro@gmail.com>
To: Bastien Nocera <hadess@hadess.net>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: Renaming hci interfaces with udev
Date: Tue, 28 Jul 2009 14:05:07 +0200 [thread overview]
Message-ID: <20090728120507.GB3292@stjenka> (raw)
In-Reply-To: <1248780878.23466.11714.camel@localhost.localdomain>
On Tue, Jul 28, 2009 at 12:34:38PM +0100, Bastien Nocera wrote:
> On Tue, 2009-07-28 at 10:37 +0200, Andrej Rosano wrote:
> > Hi,
> > I would like to change the default name of bluetooth interfaces (hci0, hci1, ...)
> > using udev rules.
>
> Could I ask why you want to do that?
I have more than one bt dongle connected to the box and I would like to assign always
the same bluetooth name (the one set with hciconfig hciX name ...), ex:
the one with BD_ADDR=xx:yy:zz:00:00:01 -> foo
the one with BD_ADDR=xx:yy:zz:00:00:02 -> bar
...
If one could use the udev persistent rules like with ethernet interfaces:
ACTION=="add", KERNEL=="hci*", ATTR{address}=="xx:yy:zz:00:00:01", NAME="hci0"
ACTION=="add", KERNEL=="hci*", ATTR{address}=="xx:yy:zz:00:00:02", NAME="hci1"
...
and then set the appropriate bluetooth name:
hciconfig hci0 name foo
hciconfig hci1 name bar
...
Currently I am using a script to do that.
Regards,
Andrej
--
Andrej Rosano <andrejro@gmail.com>
0x7B470744 E5DF 7810 AD63 A215 2D0E AF56 53C7 A2CB 7B47 0744
next prev parent reply other threads:[~2009-07-28 12:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-28 8:37 Renaming hci interfaces with udev Andrej Rosano
2009-07-28 11:31 ` Marcel Holtmann
2009-07-28 11:34 ` Bastien Nocera
2009-07-28 12:05 ` Andrej Rosano [this message]
2009-07-28 12:22 ` 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=20090728120507.GB3292@stjenka \
--to=andrejro@gmail.com \
--cc=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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox