From owner-cvs-all@FreeBSD.ORG Thu Nov 10 19:09:23 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 38E7B16A41F; Thu, 10 Nov 2005 19:09:23 +0000 (GMT) (envelope-from emax@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0017043D62; Thu, 10 Nov 2005 19:09:22 +0000 (GMT) (envelope-from emax@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id jAAJ9M2R010950; Thu, 10 Nov 2005 19:09:22 GMT (envelope-from emax@repoman.freebsd.org) Received: (from emax@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id jAAJ9MRs010949; Thu, 10 Nov 2005 19:09:22 GMT (envelope-from emax) Message-Id: <200511101909.jAAJ9MRs010949@repoman.freebsd.org> From: Maksim Yevmenkin Date: Thu, 10 Nov 2005 19:09:22 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/etc/bluetooth hosts protocols src/etc/defaults Makefile bluetooth.device.conf src/etc/rc.d Makefile bluetooth X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Nov 2005 19:09:23 -0000 emax 2005-11-10 19:09:22 UTC FreeBSD src repository Modified files: etc/bluetooth hosts protocols etc/defaults Makefile etc/rc.d Makefile Added files: etc/defaults bluetooth.device.conf etc/rc.d bluetooth Log: Start integrating Bluetooth into rc.d system. Introduce /etc/rc.d/bluetooth script to start/stop Bluetooth devices. It will be called from devd(8) in response to device arrival/departure events. It is also possible to call it by hand to start/stop particular device without unplugging it. Introduce generic way to set configuration parameters for Bluetooth devices. By default /etc/rc.d/bluetooth script has hardwired defaults compatible with old rc.bluetooth from /usr/share/netgraph/bluetooth/examples. These can be overridden using /etc/defaults/bluetooth.device.conf file (system wide defaults). Finally, there could be another device specific override file located in /etc/bluetooth/$device.conf (where $device is ubt0, btccc0 etc.) The list of configuration parameters and their meaning described in the /etc/defaults/bluetooth.device.conf file. Even though Bluetooth device configuration files are not shell scripts, they must follow basic sh(1) syntax. The bluetooth.device.conf(5) and handbook update will follow shortly. Inspired by: Panagiotis Astithas ( past at ebs dot gr ) Reviewed by: brooks, yar MFC after: 1 week Revision Changes Path 1.2 +1 -2 src/etc/bluetooth/hosts 1.2 +2 -1 src/etc/bluetooth/protocols 1.6 +1 -1 src/etc/defaults/Makefile 1.1 +112 -0 src/etc/defaults/bluetooth.device.conf (new) 1.60 +1 -1 src/etc/rc.d/Makefile 1.1 +366 -0 src/etc/rc.d/bluetooth (new)