From owner-freebsd-rc@FreeBSD.ORG Mon Nov 7 11:02:14 2005 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1FFFA16A41F for ; Mon, 7 Nov 2005 11:02:14 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C72CE43D55 for ; Mon, 7 Nov 2005 11:02:13 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id jA7B2D5r049965 for ; Mon, 7 Nov 2005 11:02:13 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id jA7B2CxY049959 for freebsd-rc@freebsd.org; Mon, 7 Nov 2005 11:02:12 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 7 Nov 2005 11:02:12 GMT Message-Id: <200511071102.jA7B2CxY049959@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-rc@FreeBSD.org Cc: Subject: Current problem reports assigned to you X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Nov 2005 11:02:14 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2005/02/10] conf/77340 rc awk used in /etc/rc.d/nsswitch when not a 1 problem total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2004/06/30] conf/68525 rc Loader's verbose boot mode has rc.d/local o [2004/07/07] conf/68745 rc /etc/rc.d/devfs runs after ntpd so links o [2005/05/14] kern/81006 rc ipnat not working with tunnel interfaces 3 problems total. From owner-freebsd-rc@FreeBSD.ORG Mon Nov 7 18:27:42 2005 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 19FF316A41F; Mon, 7 Nov 2005 18:27:42 +0000 (GMT) (envelope-from maksim.yevmenkin@savvis.net) Received: from ismybrain.com (ismybrain.com [64.246.42.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 18E7443D67; Mon, 7 Nov 2005 18:27:40 +0000 (GMT) (envelope-from maksim.yevmenkin@savvis.net) Received: from [10.254.186.111] (localhost.localdomain [127.0.0.1]) by ismybrain.com (8.11.6/8.11.6) with ESMTP id jA7IRQJ18890; Mon, 7 Nov 2005 13:27:27 -0500 Message-ID: <436F9C8B.1000300@savvis.net> Date: Mon, 07 Nov 2005 10:27:23 -0800 From: Maksim Yevmenkin User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050404) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Yar Tikhiy References: <4357CEA5.1000308@savvis.net> <4357D9E2.6010701@ebs.gr> <4367E346.4080106@savvis.net> <20051102111709.GD2465@comp.chem.msu.su> <20051102161311.GA8499@odin.ac.hmc.edu> <43690365.60909@savvis.net> <20051102190655.GA3961@odin.ac.hmc.edu> <436A6649.7000602@savvis.net> <20051103203217.GA30685@odin.ac.hmc.edu> <436BE02D.2020404@savvis.net> <20051105113503.GA13863@comp.chem.msu.su> In-Reply-To: <20051105113503.GA13863@comp.chem.msu.su> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-bluetooth@freebsd.org, freebsd-rc@freebsd.org, Panagiotis Astithas Subject: Re: [RFC] rc.d integration for the bluetooth subsystem X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Nov 2005 18:27:42 -0000 Yar Tikhiy wrote: > On Fri, Nov 04, 2005 at 02:26:53PM -0800, Maksim Yevmenkin wrote: > >>All, >> >>please find next revision of bluetooth-rc stuff at >> >>http://people.freebsd.org/~emax/bluetooth-rc-1.diff.txt >> >>in this revision i have moved all bluetooth configuration files under >>/etc/bluetooth. bluetooth.device.sample is now called 'default.conf' and >>file that contain device specific overrides called '$dev.conf' (i.e. >>'ubt0.conf'). >> >>so, '/etc/rc.d/bluetooth start $dev' does the following >> >>1) sets hardwired defaults (for backward compatibility) >> >>2) reads up /etc/bluetooth/default.conf (if any) >> >>3) reads up /etc/bluetooth/$dev.conf (if any) >> >>4) starts the stack >> >>even though /etc/bluetooth/{default,$dev}.conf are not exactly shell >>scripts they are still kinda like shell scripts :) these files should >>follow sh(1) syntax to set the variable, comments etc. >> >>the parser in bluetooth_read_conf() is very simple and value of a >>variable is still used in sh(1) eval. so one must be careful when >>editing these files. > > What about simplifying the inner parser code even more: > > case "$_line" in > ''|\#*) > ;; > *) > if expr "$_line" : "[a-zA-Z0-9_]*="; then > eval "${_namespace}${_line}" > else > ${logger} "Unable to parse line \"$_line\" in $_file" > return 1 > fi > ;; > esac sure. only need to if expr "$_line" : "[a-zA-Z0-9_]*=" > /dev/null 2>&1 ; then ... fi i do not really have any objection to this. since i already pass the value through eval i might as well pass the entire line. > BTW, couldn't just err() or warn() be used instead of ${logger}? i guess they could > And AFAIK stdin to a while loop can be redirected w/o enclosing > the loop in braces. sure, but it looked more clear (to me anyway) this way :) so does this look like something? http://people.freebsd.org/~emax/bluetooth-rc-2.diff.txt any other comments, suggestions, objections? please speak. thanks, max From owner-freebsd-rc@FreeBSD.ORG Mon Nov 7 20:01:01 2005 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 51DF716A420; Mon, 7 Nov 2005 20:01:01 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id A7A1C43D5F; Mon, 7 Nov 2005 20:00:57 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id jA7K0eHF007832; Mon, 7 Nov 2005 12:00:40 -0800 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id jA7K0eqB007831; Mon, 7 Nov 2005 12:00:40 -0800 Date: Mon, 7 Nov 2005 12:00:40 -0800 From: Brooks Davis To: Maksim Yevmenkin Message-ID: <20051107200040.GB29473@odin.ac.hmc.edu> References: <4357CEA5.1000308@savvis.net> <4357D9E2.6010701@ebs.gr> <4367E346.4080106@savvis.net> <20051102111709.GD2465@comp.chem.msu.su> <20051102161311.GA8499@odin.ac.hmc.edu> <43690365.60909@savvis.net> <20051102190655.GA3961@odin.ac.hmc.edu> <436A6649.7000602@savvis.net> <20051103203217.GA30685@odin.ac.hmc.edu> <436BE02D.2020404@savvis.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="DBIVS5p969aUjpLe" Content-Disposition: inline In-Reply-To: <436BE02D.2020404@savvis.net> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu Cc: freebsd-bluetooth@freebsd.org, freebsd-rc@freebsd.org, Panagiotis Astithas Subject: Re: [RFC] rc.d integration for the bluetooth subsystem X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Nov 2005 20:01:01 -0000 --DBIVS5p969aUjpLe Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Nov 04, 2005 at 02:26:53PM -0800, Maksim Yevmenkin wrote: > All, >=20 > please find next revision of bluetooth-rc stuff at >=20 > http://people.freebsd.org/~emax/bluetooth-rc-1.diff.txt >=20 > in this revision i have moved all bluetooth configuration files under=20 > /etc/bluetooth. bluetooth.device.sample is now called 'default.conf' and= =20 > file that contain device specific overrides called '$dev.conf' (i.e.=20 > 'ubt0.conf'). >=20 > so, '/etc/rc.d/bluetooth start $dev' does the following >=20 > 1) sets hardwired defaults (for backward compatibility) >=20 > 2) reads up /etc/bluetooth/default.conf (if any) I think /etc/defaults/bluetooth.device.conf might be better since we do have a defined location of default files and this will discourge people from messing with them. > 3) reads up /etc/bluetooth/$dev.conf (if any) > > 4) starts the stack >=20 > even though /etc/bluetooth/{default,$dev}.conf are not exactly shell=20 > scripts they are still kinda like shell scripts :) these files should=20 > follow sh(1) syntax to set the variable, comments etc. >=20 > the parser in bluetooth_read_conf() is very simple and value of a=20 > variable is still used in sh(1) eval. so one must be careful when=20 > editing these files. >=20 > is this looks like something? i also could write=20 > bluetooth.device.conf(5) man page that describes the parameters as well= =20 > as the syntax of the files. A bluetooth.device.conf(5) man page would be a good idea, though the example file is quite good. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --DBIVS5p969aUjpLe Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFDb7JnXY6L6fI4GtQRAuApAKC6XhPvWzU55oJk66DRUCx9qP7IfwCeNkkg qYfoTNfhx895GnVTkdp5aGY= =4m9P -----END PGP SIGNATURE----- --DBIVS5p969aUjpLe-- From owner-freebsd-rc@FreeBSD.ORG Tue Nov 8 18:13:17 2005 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7A9DA16A41F; Tue, 8 Nov 2005 18:13:17 +0000 (GMT) (envelope-from maksim.yevmenkin@savvis.net) Received: from ismybrain.com (ismybrain.com [64.246.42.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id EC5C643D49; Tue, 8 Nov 2005 18:13:16 +0000 (GMT) (envelope-from maksim.yevmenkin@savvis.net) Received: from [10.254.186.111] (localhost.localdomain [127.0.0.1]) by ismybrain.com (8.11.6/8.11.6) with ESMTP id jA8IDAJ18234; Tue, 8 Nov 2005 13:13:14 -0500 Message-ID: <4370EAB4.8090000@savvis.net> Date: Tue, 08 Nov 2005 10:13:08 -0800 From: Maksim Yevmenkin User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050404) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Brooks Davis References: <4357CEA5.1000308@savvis.net> <4357D9E2.6010701@ebs.gr> <4367E346.4080106@savvis.net> <20051102111709.GD2465@comp.chem.msu.su> <20051102161311.GA8499@odin.ac.hmc.edu> <43690365.60909@savvis.net> <20051102190655.GA3961@odin.ac.hmc.edu> <436A6649.7000602@savvis.net> <20051103203217.GA30685@odin.ac.hmc.edu> <436BE02D.2020404@savvis.net> <20051107200040.GB29473@odin.ac.hmc.edu> In-Reply-To: <20051107200040.GB29473@odin.ac.hmc.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-bluetooth@freebsd.org, freebsd-rc@freebsd.org, Panagiotis Astithas Subject: Re: [RFC] rc.d integration for the bluetooth subsystem X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Nov 2005 18:13:17 -0000 Brooks, >>please find next revision of bluetooth-rc stuff at >> >>http://people.freebsd.org/~emax/bluetooth-rc-1.diff.txt >> >>in this revision i have moved all bluetooth configuration files under >>/etc/bluetooth. bluetooth.device.sample is now called 'default.conf' and >>file that contain device specific overrides called '$dev.conf' (i.e. >>'ubt0.conf'). >> >>so, '/etc/rc.d/bluetooth start $dev' does the following >> >>1) sets hardwired defaults (for backward compatibility) >> >>2) reads up /etc/bluetooth/default.conf (if any) > > I think /etc/defaults/bluetooth.device.conf might be better since we do > have a defined location of default files and this will discourge people > from messing with them. that is fine with me. i'm sorry this is taking so long :) now the last question: should we keep device specific files under /etc/bluetooth or just under /etc? right now i have devfs.rules, pccard.conf, periodic.conf and rc.conf under /etc/defaults. overrides for these go into /etc. another alternative (which probably no one is going to like) is to use /etc/bluetooth/defaults/device.conf (defaults) and /etc/bluetooth/$dev.conf files (overrides). >>3) reads up /etc/bluetooth/$dev.conf (if any) >> >>4) starts the stack >> >>even though /etc/bluetooth/{default,$dev}.conf are not exactly shell >>scripts they are still kinda like shell scripts :) these files should >>follow sh(1) syntax to set the variable, comments etc. >> >>the parser in bluetooth_read_conf() is very simple and value of a >>variable is still used in sh(1) eval. so one must be careful when >>editing these files. >> >>is this looks like something? i also could write >>bluetooth.device.conf(5) man page that describes the parameters as well >>as the syntax of the files. > > A bluetooth.device.conf(5) man page would be a good idea, though the > example file is quite good. agreed. thanks, max From owner-freebsd-rc@FreeBSD.ORG Tue Nov 8 18:32:13 2005 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D925016A41F; Tue, 8 Nov 2005 18:32:13 +0000 (GMT) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (comp.chem.msu.su [158.250.32.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id E2CBA43D45; Tue, 8 Nov 2005 18:32:12 +0000 (GMT) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.13.3/8.13.3) with ESMTP id jA8IW4ME041059; Tue, 8 Nov 2005 21:32:05 +0300 (MSK) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.13.3/8.13.3/Submit) id jA8IW4PL041058; Tue, 8 Nov 2005 21:32:04 +0300 (MSK) (envelope-from yar) Date: Tue, 8 Nov 2005 21:32:04 +0300 From: Yar Tikhiy To: Maksim Yevmenkin Message-ID: <20051108183203.GA40364@comp.chem.msu.su> References: <4367E346.4080106@savvis.net> <20051102111709.GD2465@comp.chem.msu.su> <20051102161311.GA8499@odin.ac.hmc.edu> <43690365.60909@savvis.net> <20051102190655.GA3961@odin.ac.hmc.edu> <436A6649.7000602@savvis.net> <20051103203217.GA30685@odin.ac.hmc.edu> <436BE02D.2020404@savvis.net> <20051105113503.GA13863@comp.chem.msu.su> <436F9C8B.1000300@savvis.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <436F9C8B.1000300@savvis.net> User-Agent: Mutt/1.5.9i Cc: freebsd-bluetooth@freebsd.org, freebsd-rc@freebsd.org, Panagiotis Astithas Subject: Re: [RFC] rc.d integration for the bluetooth subsystem X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Nov 2005 18:32:14 -0000 On Mon, Nov 07, 2005 at 10:27:23AM -0800, Maksim Yevmenkin wrote: > Yar Tikhiy wrote: > > if expr "$_line" : "[a-zA-Z0-9_]*=" > /dev/null 2>&1 ; then > ... > fi > > i do not really have any objection to this. since i already pass the > value through eval i might as well pass the entire line. And so the users will be able to use basic sh(1) tricks in the lines. > >And AFAIK stdin to a while loop can be redirected w/o enclosing > >the loop in braces. > > sure, but it looked more clear (to me anyway) this way :) Hmmm, I'm unsure if it worked at all ;-) In sh(1) you need to place a ';' before '}' if there is no '\n' after the last command in braces. That is, the sh(1) syntax dictates that you can write { command1; command2; } or { command1 command2 } but not { command1 command2 } In the last case '}' will be passed as an argument to command2 and shell will croak on brace mismatch. For some reason '}' behaves like a command itself in sh(1), unlike ')'. -- Yar From owner-freebsd-rc@FreeBSD.ORG Tue Nov 8 18:47:19 2005 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EB55916A420; Tue, 8 Nov 2005 18:47:19 +0000 (GMT) (envelope-from maksim.yevmenkin@savvis.net) Received: from ismybrain.com (ismybrain.com [64.246.42.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 665A043D46; Tue, 8 Nov 2005 18:47:17 +0000 (GMT) (envelope-from maksim.yevmenkin@savvis.net) Received: from [10.254.186.111] (localhost.localdomain [127.0.0.1]) by ismybrain.com (8.11.6/8.11.6) with ESMTP id jA8Il2J19033; Tue, 8 Nov 2005 13:47:02 -0500 Message-ID: <4370F2A3.8060808@savvis.net> Date: Tue, 08 Nov 2005 10:46:59 -0800 From: Maksim Yevmenkin User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050404) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Yar Tikhiy References: <4367E346.4080106@savvis.net> <20051102111709.GD2465@comp.chem.msu.su> <20051102161311.GA8499@odin.ac.hmc.edu> <43690365.60909@savvis.net> <20051102190655.GA3961@odin.ac.hmc.edu> <436A6649.7000602@savvis.net> <20051103203217.GA30685@odin.ac.hmc.edu> <436BE02D.2020404@savvis.net> <20051105113503.GA13863@comp.chem.msu.su> <436F9C8B.1000300@savvis.net> <20051108183203.GA40364@comp.chem.msu.su> In-Reply-To: <20051108183203.GA40364@comp.chem.msu.su> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-bluetooth@freebsd.org, freebsd-rc@freebsd.org, Panagiotis Astithas Subject: Re: [RFC] rc.d integration for the bluetooth subsystem X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Nov 2005 18:47:20 -0000 Yar, >>if expr "$_line" : "[a-zA-Z0-9_]*=" > /dev/null 2>&1 ; then >>... >>fi >> >>i do not really have any objection to this. since i already pass the >>value through eval i might as well pass the entire line. > > And so the users will be able to use basic sh(1) tricks in the lines. depending on one's position it may or may not be a good thing :) >>>And AFAIK stdin to a while loop can be redirected w/o enclosing >>>the loop in braces. >> >>sure, but it looked more clear (to me anyway) this way :) > > Hmmm, I'm unsure if it worked at all ;-) In sh(1) you need to > place a ';' before '}' if there is no '\n' after the last command > in braces. That is, the sh(1) syntax dictates that you can write it works. i tried these patches on my system. also there is a similar code in /etc/rc.subr (please see devfs_rulesets_from_file() function). but if it make sh(1) purists uncomfortable i certainly can change it :) thanks, max From owner-freebsd-rc@FreeBSD.ORG Tue Nov 8 20:16:37 2005 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 515E816A41F; Tue, 8 Nov 2005 20:16:37 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id E915743D46; Tue, 8 Nov 2005 20:16:36 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id jA8KGLTI006201; Tue, 8 Nov 2005 12:16:21 -0800 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id jA8KGKiF006200; Tue, 8 Nov 2005 12:16:20 -0800 Date: Tue, 8 Nov 2005 12:16:20 -0800 From: Brooks Davis To: Maksim Yevmenkin Message-ID: <20051108201620.GD27091@odin.ac.hmc.edu> References: <4367E346.4080106@savvis.net> <20051102111709.GD2465@comp.chem.msu.su> <20051102161311.GA8499@odin.ac.hmc.edu> <43690365.60909@savvis.net> <20051102190655.GA3961@odin.ac.hmc.edu> <436A6649.7000602@savvis.net> <20051103203217.GA30685@odin.ac.hmc.edu> <436BE02D.2020404@savvis.net> <20051107200040.GB29473@odin.ac.hmc.edu> <4370EAB4.8090000@savvis.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4370EAB4.8090000@savvis.net> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu Cc: freebsd-bluetooth@freebsd.org, freebsd-rc@freebsd.org, Panagiotis Astithas Subject: Re: [RFC] rc.d integration for the bluetooth subsystem X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Nov 2005 20:16:37 -0000 On Tue, Nov 08, 2005 at 10:13:08AM -0800, Maksim Yevmenkin wrote: > Brooks, > > >>please find next revision of bluetooth-rc stuff at > >> > >>http://people.freebsd.org/~emax/bluetooth-rc-1.diff.txt > >> > >>in this revision i have moved all bluetooth configuration files under > >>/etc/bluetooth. bluetooth.device.sample is now called 'default.conf' and > >>file that contain device specific overrides called '$dev.conf' (i.e. > >>'ubt0.conf'). > >> > >>so, '/etc/rc.d/bluetooth start $dev' does the following > >> > >>1) sets hardwired defaults (for backward compatibility) > >> > >>2) reads up /etc/bluetooth/default.conf (if any) > > > >I think /etc/defaults/bluetooth.device.conf might be better since we do > >have a defined location of default files and this will discourge people > >from messing with them. > > that is fine with me. i'm sorry this is taking so long :) now the last > question: should we keep device specific files under /etc/bluetooth or > just under /etc? right now i have devfs.rules, pccard.conf, > periodic.conf and rc.conf under /etc/defaults. overrides for these go > into /etc. > > another alternative (which probably no one is going to like) is to use > /etc/bluetooth/defaults/device.conf (defaults) and > /etc/bluetooth/$dev.conf files (overrides). I think they should go in /etc/bluetooth/$dev.conf and the defults should go in /etc/defaults. The per-device files should not go directly in /etc because there is more that one of them. -- Brooks From owner-freebsd-rc@FreeBSD.ORG Tue Nov 8 23:57:54 2005 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4D88216A41F; Tue, 8 Nov 2005 23:57:54 +0000 (GMT) (envelope-from maksim.yevmenkin@savvis.net) Received: from ismybrain.com (ismybrain.com [64.246.42.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id B1D6143D45; Tue, 8 Nov 2005 23:57:53 +0000 (GMT) (envelope-from maksim.yevmenkin@savvis.net) Received: from [10.254.186.111] (localhost.localdomain [127.0.0.1]) by ismybrain.com (8.11.6/8.11.6) with ESMTP id jA8NvpJ26205; Tue, 8 Nov 2005 18:57:52 -0500 Message-ID: <43713B7D.7090405@savvis.net> Date: Tue, 08 Nov 2005 15:57:49 -0800 From: Maksim Yevmenkin User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050404) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-bluetooth@freebsd.org, freebsd-rc@freebsd.org References: <4367E346.4080106@savvis.net> <20051102111709.GD2465@comp.chem.msu.su> <20051102161311.GA8499@odin.ac.hmc.edu> <43690365.60909@savvis.net> <20051102190655.GA3961@odin.ac.hmc.edu> <436A6649.7000602@savvis.net> <20051103203217.GA30685@odin.ac.hmc.edu> <436BE02D.2020404@savvis.net> <20051107200040.GB29473@odin.ac.hmc.edu> <4370EAB4.8090000@savvis.net> <20051108201620.GD27091@odin.ac.hmc.edu> In-Reply-To: <20051108201620.GD27091@odin.ac.hmc.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Panagiotis Astithas Subject: Re: [RFC] rc.d integration for the bluetooth subsystem X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Nov 2005 23:57:54 -0000 All, please find next revision of bluetooth-rc stuff at http://people.freebsd.org/~emax/bluetooth-rc-3.diff.txt in this revision i have moved default bluetooth.device.conf configuration file under /etc/defaults. device specific overrides are under /etc/bluetooth and called '$dev.conf'. the rest if quite the same, so /etc/rc.d/bluetooth start "foo" 1) sets hardwired defaults (for backward compatibility) 2) reads /etc/defaults/bluetooth.device.conf (if any) 3) reads /etc/bluetooth/foo.conf i also removed offending { } in while loop stdin redirection. if this is acceptable then i will commit this and start working on bluetooth.device.conf(5) man page and handbook chapter updates. thanks, max From owner-freebsd-rc@FreeBSD.ORG Wed Nov 9 06:39:03 2005 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F1F3416A426; Wed, 9 Nov 2005 06:39:02 +0000 (GMT) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (comp.chem.msu.su [158.250.32.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id ECD2F43D46; Wed, 9 Nov 2005 06:39:00 +0000 (GMT) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.13.3/8.13.3) with ESMTP id jA96csl3007323; Wed, 9 Nov 2005 09:38:54 +0300 (MSK) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.13.3/8.13.3/Submit) id jA96cml2007313; Wed, 9 Nov 2005 09:38:48 +0300 (MSK) (envelope-from yar) Date: Wed, 9 Nov 2005 09:38:47 +0300 From: Yar Tikhiy To: Maksim Yevmenkin Message-ID: <20051109063847.GB4605@comp.chem.msu.su> References: <20051102161311.GA8499@odin.ac.hmc.edu> <43690365.60909@savvis.net> <20051102190655.GA3961@odin.ac.hmc.edu> <436A6649.7000602@savvis.net> <20051103203217.GA30685@odin.ac.hmc.edu> <436BE02D.2020404@savvis.net> <20051107200040.GB29473@odin.ac.hmc.edu> <4370EAB4.8090000@savvis.net> <20051108201620.GD27091@odin.ac.hmc.edu> <43713B7D.7090405@savvis.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43713B7D.7090405@savvis.net> User-Agent: Mutt/1.5.9i Cc: freebsd-bluetooth@freebsd.org, freebsd-rc@freebsd.org, Panagiotis Astithas Subject: Re: [RFC] rc.d integration for the bluetooth subsystem X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Nov 2005 06:39:03 -0000 On Tue, Nov 08, 2005 at 03:57:49PM -0800, Maksim Yevmenkin wrote: > > i also removed offending { } in while loop stdin redirection. if this is Thanks! The handling of {} seems to be one of gray corners in sh(1) syntax if it works as in the initial version of your script. Another one I've noticed is the case operator. Your line was like this: case $line in and it still worked for $line containing IFS chars. sh(1) seems to put double quotes aroung the word passed to case implicitly. While such things may seem to make sh(1) coding a tad easier, I'm afraid they shouldn't be relied upon. -- Yar From owner-freebsd-rc@FreeBSD.ORG Wed Nov 9 17:30:20 2005 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DD6C116A41F; Wed, 9 Nov 2005 17:30:20 +0000 (GMT) (envelope-from maksim.yevmenkin@savvis.net) Received: from ismybrain.com (ismybrain.com [64.246.42.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 65B8143D46; Wed, 9 Nov 2005 17:30:20 +0000 (GMT) (envelope-from maksim.yevmenkin@savvis.net) Received: from [10.254.186.111] (localhost.localdomain [127.0.0.1]) by ismybrain.com (8.11.6/8.11.6) with ESMTP id jA9HUEJ13785; Wed, 9 Nov 2005 12:30:14 -0500 Message-ID: <43723223.3030802@savvis.net> Date: Wed, 09 Nov 2005 09:30:11 -0800 From: Maksim Yevmenkin User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050404) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-bluetooth@freebsd.org, freebsd-rc@freebsd.org References: <20051102161311.GA8499@odin.ac.hmc.edu> <43690365.60909@savvis.net> <20051102190655.GA3961@odin.ac.hmc.edu> <436A6649.7000602@savvis.net> <20051103203217.GA30685@odin.ac.hmc.edu> <436BE02D.2020404@savvis.net> <20051107200040.GB29473@odin.ac.hmc.edu> <4370EAB4.8090000@savvis.net> <20051108201620.GD27091@odin.ac.hmc.edu> <43713B7D.7090405@savvis.net> <20051109063847.GB4605@comp.chem.msu.su> In-Reply-To: <20051109063847.GB4605@comp.chem.msu.su> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Panagiotis Astithas Subject: Re: [RFC] rc.d integration for the bluetooth subsystem X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Nov 2005 17:30:21 -0000 All, >>i also removed offending { } in while loop stdin redirection. if this is > > Thanks! The handling of {} seems to be one of gray corners in sh(1) > syntax if it works as in the initial version of your script. Another > one I've noticed is the case operator. Your line was like this: > > case $line in > > and it still worked for $line containing IFS chars. sh(1) seems > to put double quotes aroung the word passed to case implicitly. > While such things may seem to make sh(1) coding a tad easier, I'm > afraid they shouldn't be relied upon. ok, do we agree that http://people.freebsd.org/~emax/bluetooth-rc-4.diff.txt looks fine? i have added double quotes around variables in case statements. any other comments, suggestions, objections? thanks, max From owner-freebsd-rc@FreeBSD.ORG Wed Nov 9 19:16:57 2005 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 106EB16A41F; Wed, 9 Nov 2005 19:16:57 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6B3D943D5A; Wed, 9 Nov 2005 19:16:54 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id jA9JGRr5009953; Wed, 9 Nov 2005 11:16:27 -0800 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id jA9JGQO0009952; Wed, 9 Nov 2005 11:16:26 -0800 Date: Wed, 9 Nov 2005 11:16:26 -0800 From: Brooks Davis To: Maksim Yevmenkin Message-ID: <20051109191626.GG12837@odin.ac.hmc.edu> References: <20051102190655.GA3961@odin.ac.hmc.edu> <436A6649.7000602@savvis.net> <20051103203217.GA30685@odin.ac.hmc.edu> <436BE02D.2020404@savvis.net> <20051107200040.GB29473@odin.ac.hmc.edu> <4370EAB4.8090000@savvis.net> <20051108201620.GD27091@odin.ac.hmc.edu> <43713B7D.7090405@savvis.net> <20051109063847.GB4605@comp.chem.msu.su> <43723223.3030802@savvis.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="3xoW37o/FfUZJwQG" Content-Disposition: inline In-Reply-To: <43723223.3030802@savvis.net> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu Cc: freebsd-bluetooth@freebsd.org, freebsd-rc@freebsd.org, Panagiotis Astithas Subject: Re: [RFC] rc.d integration for the bluetooth subsystem X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Nov 2005 19:16:57 -0000 --3xoW37o/FfUZJwQG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Nov 09, 2005 at 09:30:11AM -0800, Maksim Yevmenkin wrote: > All, >=20 > >>i also removed offending { } in while loop stdin redirection. if this i= s=20 > > > >Thanks! The handling of {} seems to be one of gray corners in sh(1) > >syntax if it works as in the initial version of your script. Another > >one I've noticed is the case operator. Your line was like this: > > > > case $line in > > > >and it still worked for $line containing IFS chars. sh(1) seems > >to put double quotes aroung the word passed to case implicitly. > >While such things may seem to make sh(1) coding a tad easier, I'm > >afraid they shouldn't be relied upon. >=20 > ok, do we agree that >=20 > http://people.freebsd.org/~emax/bluetooth-rc-4.diff.txt >=20 > looks fine? i have added double quotes around variables in case=20 > statements. any other comments, suggestions, objections? Looks good to me. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --3xoW37o/FfUZJwQG Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFDcksJXY6L6fI4GtQRAu1vAJwI9dpAevBjTnUPmsAGssO7BFn2hwCfTUdT 2GJN/jRcIDBUvBDDJ4U7zK4= =bjUp -----END PGP SIGNATURE----- --3xoW37o/FfUZJwQG-- From owner-freebsd-rc@FreeBSD.ORG Wed Nov 9 22:03:03 2005 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1643016A41F; Wed, 9 Nov 2005 22:03:03 +0000 (GMT) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (comp.chem.msu.su [158.250.32.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4334843D45; Wed, 9 Nov 2005 22:03:02 +0000 (GMT) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.13.3/8.13.3) with ESMTP id jA9M2saK094480; Thu, 10 Nov 2005 01:02:54 +0300 (MSK) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.13.3/8.13.3/Submit) id jA9M2okQ094476; Thu, 10 Nov 2005 01:02:50 +0300 (MSK) (envelope-from yar) Date: Thu, 10 Nov 2005 01:02:50 +0300 From: Yar Tikhiy To: Maksim Yevmenkin Message-ID: <20051109220250.GA91874@comp.chem.msu.su> References: <436A6649.7000602@savvis.net> <20051103203217.GA30685@odin.ac.hmc.edu> <436BE02D.2020404@savvis.net> <20051107200040.GB29473@odin.ac.hmc.edu> <4370EAB4.8090000@savvis.net> <20051108201620.GD27091@odin.ac.hmc.edu> <43713B7D.7090405@savvis.net> <20051109063847.GB4605@comp.chem.msu.su> <43723223.3030802@savvis.net> <20051109191626.GG12837@odin.ac.hmc.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051109191626.GG12837@odin.ac.hmc.edu> User-Agent: Mutt/1.5.9i Cc: freebsd-bluetooth@freebsd.org, freebsd-rc@freebsd.org, Panagiotis Astithas Subject: Re: [RFC] rc.d integration for the bluetooth subsystem X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Nov 2005 22:03:03 -0000 On Wed, Nov 09, 2005 at 11:16:26AM -0800, Brooks Davis wrote: > On Wed, Nov 09, 2005 at 09:30:11AM -0800, Maksim Yevmenkin wrote: > > All, > > > > >>i also removed offending { } in while loop stdin redirection. if this is > > > > > >Thanks! The handling of {} seems to be one of gray corners in sh(1) > > >syntax if it works as in the initial version of your script. Another > > >one I've noticed is the case operator. Your line was like this: > > > > > > case $line in > > > > > >and it still worked for $line containing IFS chars. sh(1) seems > > >to put double quotes aroung the word passed to case implicitly. > > >While such things may seem to make sh(1) coding a tad easier, I'm > > >afraid they shouldn't be relied upon. > > > > ok, do we agree that > > > > http://people.freebsd.org/~emax/bluetooth-rc-4.diff.txt > > > > looks fine? i have added double quotes around variables in case > > statements. any other comments, suggestions, objections? > > Looks good to me. To me, too (as good as it can look to a person who has never used bluetooth :-) I think it should be a good beginning. -- Yar From owner-freebsd-rc@FreeBSD.ORG Fri Nov 11 23:08:35 2005 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E2FAD16A41F; Fri, 11 Nov 2005 23:08:35 +0000 (GMT) (envelope-from maksim.yevmenkin@savvis.net) Received: from ismybrain.com (ismybrain.com [64.246.42.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6871743D45; Fri, 11 Nov 2005 23:08:35 +0000 (GMT) (envelope-from maksim.yevmenkin@savvis.net) Received: from [10.254.186.111] (localhost.localdomain [127.0.0.1]) by ismybrain.com (8.11.6/8.11.6) with ESMTP id jABN8XJ29208; Fri, 11 Nov 2005 18:08:33 -0500 Message-ID: <4375246E.3050303@savvis.net> Date: Fri, 11 Nov 2005 15:08:30 -0800 From: Maksim Yevmenkin User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050404) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-bluetooth@freebsd.org, freebsd-rc@freebsd.org References: <43519460.1090605@ebs.gr> <1129491219.1616.18.camel@localhost> In-Reply-To: <1129491219.1616.18.camel@localhost> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Warner Losh , Panagiotis Astithas Subject: Re: [RFC] rc.d integration for the bluetooth subsystem X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Nov 2005 23:08:36 -0000 All, does anyone have any objections to the /etc/devd.conf patch located at http://people.freebsd.org/~emax/devd.conf.diff.txt this patch will add support for a usb bluetooth dongles to devd(8). also while i'm here where do we stick firmware files by default? thanks, max From owner-freebsd-rc@FreeBSD.ORG Fri Nov 11 23:41:30 2005 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0198116A41F; Fri, 11 Nov 2005 23:41:30 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F7AB43D9F; Fri, 11 Nov 2005 23:41:12 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id jABNefxf013899; Fri, 11 Nov 2005 15:40:41 -0800 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id jABNefmL013898; Fri, 11 Nov 2005 15:40:41 -0800 Date: Fri, 11 Nov 2005 15:40:41 -0800 From: Brooks Davis To: Maksim Yevmenkin Message-ID: <20051111234041.GA10648@odin.ac.hmc.edu> References: <43519460.1090605@ebs.gr> <1129491219.1616.18.camel@localhost> <4375246E.3050303@savvis.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="TB36FDmn/VVEgNH/" Content-Disposition: inline In-Reply-To: <4375246E.3050303@savvis.net> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu Cc: freebsd-bluetooth@freebsd.org, freebsd-rc@freebsd.org, Panagiotis Astithas , Warner Losh Subject: Re: [RFC] rc.d integration for the bluetooth subsystem X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Nov 2005 23:41:30 -0000 --TB36FDmn/VVEgNH/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Nov 11, 2005 at 03:08:30PM -0800, Maksim Yevmenkin wrote: > All, >=20 > does anyone have any objections to the /etc/devd.conf patch located at >=20 > http://people.freebsd.org/~emax/devd.conf.diff.txt >=20 > this patch will add support for a usb bluetooth dongles to devd(8). Looks fine. > also while i'm here where do we stick firmware files by default? I don't see an obvious location. Somewhere under /usr/libdata or /usr/share seems logical to me. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --TB36FDmn/VVEgNH/ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFDdSv4XY6L6fI4GtQRAmXDAKDIULgY4HeXDcU0tWRcVPtbC54UYACgy6wF UaW2t70f5EJ81+RdGXu2k6M= =e9NU -----END PGP SIGNATURE----- --TB36FDmn/VVEgNH/-- From owner-freebsd-rc@FreeBSD.ORG Fri Nov 11 23:52:20 2005 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9F36D16A41F; Fri, 11 Nov 2005 23:52:20 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2B0D643D53; Fri, 11 Nov 2005 23:52:20 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.3/8.13.3) with ESMTP id jABNoPmN078816; Fri, 11 Nov 2005 16:50:25 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Fri, 11 Nov 2005 16:51:03 -0700 (MST) Message-Id: <20051111.165103.110975378.imp@bsdimp.com> To: maksim.yevmenkin@savvis.net From: "M. Warner Losh" In-Reply-To: <4375246E.3050303@savvis.net> References: <43519460.1090605@ebs.gr> <1129491219.1616.18.camel@localhost> <4375246E.3050303@savvis.net> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Fri, 11 Nov 2005 16:50:25 -0700 (MST) Cc: freebsd-bluetooth@freebsd.org, freebsd-rc@freebsd.org, past@ebs.gr Subject: Re: [RFC] rc.d integration for the bluetooth subsystem X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Nov 2005 23:52:20 -0000 In message: <4375246E.3050303@savvis.net> Maksim Yevmenkin writes: : does anyone have any objections to the /etc/devd.conf patch located at : : http://people.freebsd.org/~emax/devd.conf.diff.txt : : this patch will add support for a usb bluetooth dongles to devd(8). That looks fine to me. : also while i'm here where do we stick firmware files by default? /usr/share seems most logical to me, but suffers from the 'can't load firmware until after /usr is mounted' issue. For most firmware, this is a minor issue... Warner From owner-freebsd-rc@FreeBSD.ORG Sat Nov 12 00:09:37 2005 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 048BB16A41F; Sat, 12 Nov 2005 00:09:37 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id F056443D69; Sat, 12 Nov 2005 00:09:33 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id jAC09UfE018377; Fri, 11 Nov 2005 16:09:30 -0800 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id jAC09TUR018376; Fri, 11 Nov 2005 16:09:29 -0800 Date: Fri, 11 Nov 2005 16:09:29 -0800 From: Brooks Davis To: "M. Warner Losh" Message-ID: <20051112000929.GB10648@odin.ac.hmc.edu> References: <43519460.1090605@ebs.gr> <1129491219.1616.18.camel@localhost> <4375246E.3050303@savvis.net> <20051111.165103.110975378.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="oC1+HKm2/end4ao3" Content-Disposition: inline In-Reply-To: <20051111.165103.110975378.imp@bsdimp.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu Cc: freebsd-bluetooth@freebsd.org, freebsd-rc@freebsd.org, past@ebs.gr Subject: Re: [RFC] rc.d integration for the bluetooth subsystem X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Nov 2005 00:09:37 -0000 --oC1+HKm2/end4ao3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Nov 11, 2005 at 04:51:03PM -0700, M. Warner Losh wrote: > In message: <4375246E.3050303@savvis.net> > Maksim Yevmenkin writes: > : does anyone have any objections to the /etc/devd.conf patch located at > :=20 > : http://people.freebsd.org/~emax/devd.conf.diff.txt > :=20 > : this patch will add support for a usb bluetooth dongles to devd(8). >=20 > That looks fine to me. >=20 > : also while i'm here where do we stick firmware files by default? >=20 > /usr/share seems most logical to me, but suffers from the 'can't load > firmware until after /usr is mounted' issue. For most firmware, this > is a minor issue... It's also not an issue in practice for most installations since /usr is local and gets mounted quite early. It's only when /usr is NFS and not part of / that you usually get into trouble. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --oC1+HKm2/end4ao3 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFDdTK5XY6L6fI4GtQRAsonAKCygm7sNVIsRZMo7nwlkGARPwk9rQCgqIXY YL/DSALY13B3O0KnipjOErc= =mv3s -----END PGP SIGNATURE----- --oC1+HKm2/end4ao3-- From owner-freebsd-rc@FreeBSD.ORG Sat Nov 12 00:27:24 2005 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2F13516A41F; Sat, 12 Nov 2005 00:27:24 +0000 (GMT) (envelope-from dmp@bitfreak.org) Received: from mail.bitfreak.org (mail.bitfreak.org [65.75.198.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id DB89143D45; Sat, 12 Nov 2005 00:27:23 +0000 (GMT) (envelope-from dmp@bitfreak.org) Received: from smiley (mail.bitfreak.org [65.75.198.146]) by mail.bitfreak.org (Postfix) with ESMTP id CCD9919F2C; Fri, 11 Nov 2005 16:33:43 -0800 (PST) From: "Darren Pilgrim" To: "'M. Warner Losh'" , Date: Fri, 11 Nov 2005 16:27:16 -0800 Message-ID: <001201c5e71f$d9435c40$652a15ac@smiley> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 In-Reply-To: <20051111.165103.110975378.imp@bsdimp.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Importance: Normal Cc: freebsd-bluetooth@freebsd.org, freebsd-rc@freebsd.org Subject: RE: [RFC] rc.d integration for the bluetooth subsystem X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Nov 2005 00:27:24 -0000 From: Warner Losh > In message: <4375246E.3050303@savvis.net> > Maksim Yevmenkin writes: > : also while i'm here where do we stick firmware files by default? > > /usr/share seems most logical to me, but suffers from the 'can't load > firmware until after /usr is mounted' issue. For most firmware, this > is a minor issue... I put firmware in /boot/firmware/ in keeping with the concept that the kernel and driver bits are all under /boot. A firmware package is really just a hardware-side driver, so why not keep it with the rest of the drivers? Just my 0.020 metric dollars. From owner-freebsd-rc@FreeBSD.ORG Sat Nov 12 03:57:18 2005 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 88D8C16A41F; Sat, 12 Nov 2005 03:57:18 +0000 (GMT) (envelope-from maksim.yevmenkin@savvis.net) Received: from mta10.adelphia.net (mta10.adelphia.net [68.168.78.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id F170843D45; Sat, 12 Nov 2005 03:57:17 +0000 (GMT) (envelope-from maksim.yevmenkin@savvis.net) Received: from [192.168.1.254] (really [70.32.199.60]) by mta10.adelphia.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20051112035717.JHJG16334.mta10.adelphia.net@[192.168.1.254]>; Fri, 11 Nov 2005 22:57:17 -0500 Message-ID: <4375681B.6030808@savvis.net> Date: Fri, 11 Nov 2005 19:57:15 -0800 From: Maksim Yevmenkin User-Agent: Mozilla Thunderbird 0.7.1 (Windows/20040626) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-bluetooth@freebsd.org, freebsd-rc@freebsd.org References: <43519460.1090605@ebs.gr> <1129491219.1616.18.camel@localhost> <4375246E.3050303@savvis.net> <20051111.165103.110975378.imp@bsdimp.com> <20051112000929.GB10648@odin.ac.hmc.edu> In-Reply-To: <20051112000929.GB10648@odin.ac.hmc.edu> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: past@ebs.gr, "M. Warner Losh" Subject: Re: [RFC] rc.d integration for the bluetooth subsystem X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Nov 2005 03:57:18 -0000 Brooks Davis wrote: > On Fri, Nov 11, 2005 at 04:51:03PM -0700, M. Warner Losh wrote: > >>In message: <4375246E.3050303@savvis.net> >> Maksim Yevmenkin writes: >>: does anyone have any objections to the /etc/devd.conf patch located at >>: >>: http://people.freebsd.org/~emax/devd.conf.diff.txt >>: >>: this patch will add support for a usb bluetooth dongles to devd(8). >> >>That looks fine to me. good. thanks for review. i have committed the patch. >>: also while i'm here where do we stick firmware files by default? >> >>/usr/share seems most logical to me, but suffers from the 'can't load >>firmware until after /usr is mounted' issue. For most firmware, this >>is a minor issue... > > It's also not an issue in practice for most installations since /usr is > local and gets mounted quite early. It's only when /usr is NFS and not > part of / that you usually get into trouble. let me just some more details. in this particular case i'm interested where to put firmware files for bluetooth devices. in particular 1) 3com bluetooth pccard v1 2) broadcom bcm2033 chip based usb bluetooth devices (belkin, d-link, etc.) in both cases firmware files are _not_ loadable modules. they are just files in vendor specific format. tools are provided (bt3cfw(8) and bcmfw(8)) to load firmware into device. what i would like to do is to add a couple more sections into the /etc/devd.conf to handle these devices. those sections can even be commented out because we cannot include firmware into the distribution. it is up to the user to find firmware and put it in the right place. so, should i create /usr/share/firmware directory or just use /usr/share? is it better to have common place for firmware files or have each driver/tool define its own place? thanks, max From owner-freebsd-rc@FreeBSD.ORG Sat Nov 12 17:55:47 2005 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7B8ED16A41F; Sat, 12 Nov 2005 17:55:47 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 19EBE43D45; Sat, 12 Nov 2005 17:55:47 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id jACHtfMh018800; Sat, 12 Nov 2005 09:55:41 -0800 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id jACHtfrw018798; Sat, 12 Nov 2005 09:55:41 -0800 Date: Sat, 12 Nov 2005 09:55:41 -0800 From: Brooks Davis To: Maksim Yevmenkin Message-ID: <20051112175541.GA18302@odin.ac.hmc.edu> References: <43519460.1090605@ebs.gr> <1129491219.1616.18.camel@localhost> <4375246E.3050303@savvis.net> <20051111.165103.110975378.imp@bsdimp.com> <20051112000929.GB10648@odin.ac.hmc.edu> <4375681B.6030808@savvis.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="G4iJoqBmSsgzjUCe" Content-Disposition: inline In-Reply-To: <4375681B.6030808@savvis.net> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu Cc: freebsd-bluetooth@freebsd.org, freebsd-rc@freebsd.org, past@ebs.gr, "M. Warner Losh" Subject: Re: [RFC] rc.d integration for the bluetooth subsystem X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Nov 2005 17:55:47 -0000 --G4iJoqBmSsgzjUCe Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Nov 11, 2005 at 07:57:15PM -0800, Maksim Yevmenkin wrote: > Brooks Davis wrote: >=20 > >On Fri, Nov 11, 2005 at 04:51:03PM -0700, M. Warner Losh wrote: > > > >>In message: <4375246E.3050303@savvis.net> > >> Maksim Yevmenkin writes: > >>: does anyone have any objections to the /etc/devd.conf patch located at > >>:=20 > >>: http://people.freebsd.org/~emax/devd.conf.diff.txt > >>:=20 > >>: this patch will add support for a usb bluetooth dongles to devd(8). > >> > >>That looks fine to me. >=20 > good. thanks for review. i have committed the patch. >=20 > >>: also while i'm here where do we stick firmware files by default? > >> > >>/usr/share seems most logical to me, but suffers from the 'can't load > >>firmware until after /usr is mounted' issue. For most firmware, this > >>is a minor issue... > > > >It's also not an issue in practice for most installations since /usr is > >local and gets mounted quite early. It's only when /usr is NFS and not > >part of / that you usually get into trouble. >=20 > let me just some more details. in this particular case i'm interested=20 > where to put firmware files for bluetooth devices. in particular >=20 > 1) 3com bluetooth pccard v1 >=20 > 2) broadcom bcm2033 chip based usb bluetooth devices (belkin, d-link, etc= .) >=20 > in both cases firmware files are _not_ loadable modules. they are just=20 > files in vendor specific format. tools are provided (bt3cfw(8) and=20 > bcmfw(8)) to load firmware into device. >=20 > what i would like to do is to add a couple more sections into the=20 > /etc/devd.conf to handle these devices. those sections can even be=20 > commented out because we cannot include firmware into the distribution.= =20 > it is up to the user to find firmware and put it in the right place. >=20 > so, should i create /usr/share/firmware directory or just use=20 > /usr/share? is it better to have common place for firmware files or have= =20 > each driver/tool define its own place? Instead, I would suggest creating a port that installs the firmware and a /usr/local/etc/devd/ script simliar to the iwi-firmware port. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --G4iJoqBmSsgzjUCe Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFDdiybXY6L6fI4GtQRAvKuAJ93GkaxQj4pXuHU2va1klVu3WilhwCfRhMT tAEEBXeVbodoNmEqVvw+Zw4= =Qu5e -----END PGP SIGNATURE----- --G4iJoqBmSsgzjUCe-- From owner-freebsd-rc@FreeBSD.ORG Sat Nov 12 22:12:11 2005 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4FA0816A41F; Sat, 12 Nov 2005 22:12:11 +0000 (GMT) (envelope-from maksim.yevmenkin@savvis.net) Received: from mta4.adelphia.net (mta4.adelphia.net [68.168.78.184]) by mx1.FreeBSD.org (Postfix) with ESMTP id B4CB443D45; Sat, 12 Nov 2005 22:12:10 +0000 (GMT) (envelope-from maksim.yevmenkin@savvis.net) Received: from [192.168.1.254] (really [70.32.199.60]) by mta9.adelphia.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20051112220825.QKQI3200.mta9.adelphia.net@[192.168.1.254]>; Sat, 12 Nov 2005 17:08:25 -0500 Message-ID: <437667D4.5030205@savvis.net> Date: Sat, 12 Nov 2005 14:08:20 -0800 From: Maksim Yevmenkin User-Agent: Mozilla Thunderbird 0.7.1 (Windows/20040626) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Brooks Davis References: <43519460.1090605@ebs.gr> <1129491219.1616.18.camel@localhost> <4375246E.3050303@savvis.net> <20051111.165103.110975378.imp@bsdimp.com> <20051112000929.GB10648@odin.ac.hmc.edu> <4375681B.6030808@savvis.net> <20051112175541.GA18302@odin.ac.hmc.edu> In-Reply-To: <20051112175541.GA18302@odin.ac.hmc.edu> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-bluetooth@freebsd.org, freebsd-rc@freebsd.org, past@ebs.gr, "M. Warner Losh" Subject: Re: [RFC] rc.d integration for the bluetooth subsystem X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Nov 2005 22:12:11 -0000 Brooks, [...] >>>>: does anyone have any objections to the /etc/devd.conf patch located at >>>>: >>>>: http://people.freebsd.org/~emax/devd.conf.diff.txt >>>>: >>>>: this patch will add support for a usb bluetooth dongles to devd(8). >>>> >>>>That looks fine to me. >> >>good. thanks for review. i have committed the patch. >> >> >>>>: also while i'm here where do we stick firmware files by default? >>>> >>>>/usr/share seems most logical to me, but suffers from the 'can't load >>>>firmware until after /usr is mounted' issue. For most firmware, this >>>>is a minor issue... >>> >>>It's also not an issue in practice for most installations since /usr is >>>local and gets mounted quite early. It's only when /usr is NFS and not >>>part of / that you usually get into trouble. >> >>let me just some more details. in this particular case i'm interested >>where to put firmware files for bluetooth devices. in particular >> >>1) 3com bluetooth pccard v1 >> >>2) broadcom bcm2033 chip based usb bluetooth devices (belkin, d-link, etc.) >> >>in both cases firmware files are _not_ loadable modules. they are just >>files in vendor specific format. tools are provided (bt3cfw(8) and >>bcmfw(8)) to load firmware into device. >> >>what i would like to do is to add a couple more sections into the >>/etc/devd.conf to handle these devices. those sections can even be >>commented out because we cannot include firmware into the distribution. >>it is up to the user to find firmware and put it in the right place. >> >>so, should i create /usr/share/firmware directory or just use >>/usr/share? is it better to have common place for firmware files or have >>each driver/tool define its own place? > > Instead, I would suggest creating a port that installs the firmware > and a /usr/local/etc/devd/ script simliar to the iwi-firmware port. ok. that sounds fine to me. does anyone have experience with this like this? i mean do i have to contact 3com and broadcom and obtain some sort of permission for this? how does this work? linux bluez has rpm that contains firmware. it seems like they have contacted broadcom, because they have firmware files in their cvs http://cvs.sourceforge.net/viewcvs.py/bluez/firmware/broadcom/ can i legally get those files and include them into freebsd port's collection? if this is going to lead to too much corporate brouhaha then perhaps i should leave it as it is. bcmfw(8) and bt3cfw(8) man pages already tell users where they can get the firmware. thanks, max