From a942e061a364f3ef0b7328537eefe9b534840102 Mon Sep 17 00:00:00 2001 From: emax Date: Sat, 12 Nov 2005 03:42:56 +0000 Subject: Add section to start/stop Bluetooth USB devices (via ng_ubt(4)) Submitted by: Panagiotis Astithas ( past at ebs dot gr ) Reviewed by: brooks, imp MFC after: 1 week --- etc/devd.conf | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'etc/devd.conf') diff --git a/etc/devd.conf b/etc/devd.conf index 3cd9eee..7c01828 100644 --- a/etc/devd.conf +++ b/etc/devd.conf @@ -86,6 +86,16 @@ detach 100 { device-name "ed50"; }; +# When a USB Bluetooth dongle appears activate it +attach 100 { + device-name "ubt[0-9]+"; + action "/etc/rc.d/bluetooth start $device-name"; +}; +detach 100 { + device-name "ubt[0-9]+"; + action "/etc/rc.d/bluetooth stop $device-name"; +}; + # When a USB keyboard arrives, attach it as the console keyboard. attach 100 { device-name "ukbd0"; -- cgit v1.1