Re: Bluetooth wireless activity triggers udev rule

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sujit Karataparambil wrote:
> I am Very Sorry with my english.
>
> But the whole issue is what are trying to do while
> 1. connecting an bluetooth device with udev(USB).
> 2. using PPP with bluetooth.
> 3. Trying to form network topologies using PPP.
>
> Still very sorry with my english.
>   
My question was answered by Kay in the second posting for this thread.

To summarise:

This will trigger on USB bluetooth device insertion *and* network
activity/wakeup:

ACTION=="add", ENV{SUBSYSTEM}=="bluetooth", RUN+="/usr/bin/sv up bluetooth"


This will trigger *only* on USB Bluetooth device insertion (which is what I needed):
ACTION=="add", KERNEL=="hci[0-9]*", SUBSYSTEM=="bluetooth",RUN+="/usr/bin/sv up bluetooth"


That's all there is to it.

Aras







______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux