From owner-freebsd-mobile@FreeBSD.ORG Tue Sep 28 17:01:32 2004 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 80EEA16A4CF for ; Tue, 28 Sep 2004 17:01:32 +0000 (GMT) Received: from postal2.es.net (postal2.es.net [198.128.3.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3574943D2D for ; Tue, 28 Sep 2004 17:01:32 +0000 (GMT) (envelope-from oberman@es.net) Received: from ptavv.es.net ([198.128.4.29]) by postal2.es.net (Postal Node 2) with ESMTP (SSL) id IBA74465; Tue, 28 Sep 2004 10:01:29 -0700 Received: from ptavv (localhost [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id 9FAE65D04; Tue, 28 Sep 2004 10:01:31 -0700 (PDT) To: Radek Kozlowski In-reply-to: Your message of "Tue, 28 Sep 2004 01:13:47 +0200." <20040927231347.GZ62265@werd> Date: Tue, 28 Sep 2004 10:01:31 -0700 From: "Kevin Oberman" Message-Id: <20040928170131.9FAE65D04@ptavv.es.net> cc: Jochen Gensch cc: freebsd-mobile@FreeBSD.org Subject: Re: FreeBSD 5.3-BETA6 available X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Sep 2004 17:01:32 -0000 > Date: Tue, 28 Sep 2004 01:13:47 +0200 > From: Radek Kozlowski > > On Mon, Sep 27, 2004 at 03:29:37PM -0700, Kevin Oberman wrote: > > > Put something like this in your devfs.rules: > > > > > > [system=10] > > > add path uscanner0 mode 660 > > > > > > and add the following line to rc.conf: > > > > > > devfs_system_ruleset="system" > > > > Thanks for the tip. But where is this documented? I can't find a > > reference to devfs.rules or to the devfs_system_ruleset variable. > > Well, I can't find it in any man page, so the only pointers are > /etc/defaults/devfs.rules and what's in /etc/defaults/rc.conf: > > raadradd@ddardaar:~> grep ^devfs /etc/defaults/rc.conf > devfs_rulesets="/etc/defaults/devfs.rules /etc/devfs.rules" # Files containing > devfs_system_ruleset="" # The name of a ruleset to apply to /dev > devfs_set_rulesets="" # A list of /mount/dev=ruleset_name settings to A little reading of /etc/rc.d/devfs helps explain quite a bit, too. It's a very clever system, but probably most FreeBSD users are unaware of how to use it or what its capabilities are. Thanks to your postings, the awareness has expanded a bit. > > And, do you know if devfs.rules can create links such as are created > > by devfs.conf? I want to have /dev/cdrom and /dev/dvd symlinked to my > > DVD drive when I attach it. > > I think devfs.conf is the right place for it (assuming /dev/acd0 is your > dvd drive): > > link acd0 dvd > link acd0 cdrom I think you missed my point on the creation of symlinks. I have them in devfs.conf, but those operations are only done at boot time. If I have no DVD in my system at boot time and add one later, I need to manually create the symlinks. No, this is not horrible, but it should be possible to automate it when the device (/dev/acd0) is created. I don't see any provision for this in devfs.rules. Now that I have thought about it a bit, I suspect that I can do the job with devd instead of devfs. I'll give it a try today if I get a little time. -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634