From owner-freebsd-fs@FreeBSD.ORG Wed Feb 8 09:40:29 2012 Return-Path: Delivered-To: freebsd-fs@FreeBSD.org Received: from mx2.freebsd.org (mx2.freebsd.org [IPv6:2001:4f8:fff6::35]) by hub.freebsd.org (Postfix) with ESMTP id D6D011065679; Wed, 8 Feb 2012 09:40:29 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from 172-17-150-251.globalsuite.net (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 20DE114F0E0; Wed, 8 Feb 2012 09:40:24 +0000 (UTC) Message-ID: <4F324308.6020008@FreeBSD.org> Date: Wed, 08 Feb 2012 01:40:24 -0800 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:10.0) Gecko/20120201 Thunderbird/10.0 MIME-Version: 1.0 To: Martin Matuska References: <4F2F9FCD.40700@FreeBSD.org> In-Reply-To: <4F2F9FCD.40700@FreeBSD.org> X-Enigmail-Version: 1.3.5 OpenPGP: id=1A1ABC84 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-fs@FreeBSD.org Subject: Re: [CFR][DEVFS] rc.conf option devfs_load_rulesets X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Feb 2012 09:40:29 -0000 On 02/06/2012 01:39, Martin Matuska wrote: > FreeBSD includes four system rulesets in /etc/defaults/devfs.rules and > allows users to configure their custom rulesets in /etc/devfs.rules. > However, if not using jails or not specifying at least one of the > "devfs_system_ruleset" or "devfs_set_rulesets" variables, there is no > way to automatically load the rules from these configuration files. > > The attached patch introduces a "devfs_load_rulesets" yes/no variable, > that allows the user to have the devfs rules always loaded on startup or > if manually running /etc/rc.d/devfs start. > > The patch is also available at: > http://people.freebsd.org/~mm/patches/devfs/devfs_load_rulesets.patch > > Please review and/or comment my attached patch. I actually ran into this same problem myself today, and I suppose GMTA because I did essentially the same thing ... even gave the knob the same name. In no way did I intend to steal your work, sorry. For future reference, if you end a line with an operator (like || or &&) there is no reason to use the \ for line continuation, sh sorts it out for you. Doug -- It's always a long day; 86400 doesn't fit into a short. Breadth of IT experience, and depth of knowledge in the DNS. Yours for the right price. :) http://SupersetSolutions.com/