From e4638e53d8fd4deaf6e7d1b0722c6f76ec3e7a3d Mon Sep 17 00:00:00 2001 From: Maksim Yevmenkin Date: Sat, 12 Nov 2005 03:42:56 +0000 Subject: [PATCH] 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(+) diff --git a/etc/devd.conf b/etc/devd.conf index 3cd9eee98957..7c0182805235 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";