From owner-freebsd-current@FreeBSD.ORG Sun Aug 31 19:44:09 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 381BB16A4BF for ; Sun, 31 Aug 2003 19:44:09 -0700 (PDT) Received: from lakemtao04.cox.net (lakemtao04.cox.net [68.1.17.241]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0679D43FEA for ; Sun, 31 Aug 2003 19:44:08 -0700 (PDT) (envelope-from jjreynold@ip68-99-84-124.ph.ph.cox.net) Received: from ip68-99-84-124.ph.ph.cox.net ([68.99.84.124]) by lakemtao04.cox.netESMTP <20030901024406.TVMD419.lakemtao04.cox.net@ip68-99-84-124.ph.ph.cox.net> for ; Sun, 31 Aug 2003 22:44:06 -0400 Received: from whale.home-net (whale.home-net [192.168.1.2]) h812i74W036705 for: 44:07 -0700 (MST) (envelope-from jjreynold@dolphin.home-net) Received: from whale.home-net (localhost [127.0.0.1]) by whale.home-net (8.12.9/8.12.9) with ESMTP id h812i6gU057991 for: 44:06 -0700 (MST) (envelope-from jjreynold@whale.home-net) Received: (from jjreynold@localhost) by whale.home-net (8.12.9/8.12.9/Submit) id h812i66G057988; Sun,: 44:06 -0700 (MST) (envelope-from jjreynold) From: John Reynolds MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16210.45686.750487.40979@whale.home-net> Date: Sun, 31 Aug 2003 19:44:06 -0700 To: current@freebsd.org X-Mailer: VM 6.88 under Emacs 21.3.1 Subject: is there a "knob" for devfs rules? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Sep 2003 02:44:09 -0000 Hi all, in debugging /dev/usb* and /dev/ugen* permissions problems so that I could access my digital camera as a mere-mortal user, I came across this posting to -questions: http://www.freebsd.org/cgi/getmsg.cgi?fetch=1203173+1206388+/usr/local/www/db/text/2003/freebsd-questions/20030622.freebsd-questions Indeed what Jesse posted worked like a charm: devfs ruleset 10 devfs rule add path 'ugen*' mode 664 Since the ugen* devices are "dynamic," putting entries in /etc/devfs.conf doesn't work unless you "restart" devfs once the camera is turned on. Thus, the rule above works nicely. He had asked in the mail where the "appropriate" place for these commands should be, but the thread ended there. So, I pose the question to this list. I didn't see anything in /etc/defaults/rc.conf regarding devfs. So, would the "appropriate" thing be to create a .sh file in /usr/local/etc/rc.d which contained the rule commands one would want and just have them be applied via this mechanism once it was very clear that devfs was up and running, etc.? Thanks, -Jr -- John & Jennifer Reynolds johnjen at reynoldsnet.org www.reynoldsnet.org Sr. Physical Design Engineer - WCCG/CCE PDE jreynold at sedona.ch.intel.com Running FreeBSD since 2.1.5-RELEASE. FreeBSD: The Power to Serve! "Unix is user friendly, it's just particular about the friends it chooses."