From owner-freebsd-current@FreeBSD.ORG Wed Apr 16 12:48:06 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 4AF8C37B401 for ; Wed, 16 Apr 2003 12:48:06 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F74C43FDD for ; Wed, 16 Apr 2003 12:48:05 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.9/8.12.9) id h3GJm4on065936; Wed, 16 Apr 2003 14:48:04 -0500 (CDT) (envelope-from dan) Date: Wed, 16 Apr 2003 14:48:04 -0500 From: Dan Nelson To: Poul-Henning Kamp Message-ID: <20030416194804.GC7923@dan.emsphone.com> References: <3E9DB047.50202@sfmidimafia.com> <33139.1050522262@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <33139.1050522262@critter.freebsd.dk> X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.4i cc: freebsd-current@freebsd.org Subject: Re: Possibly silly question about creating entries in /dev 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: Wed, 16 Apr 2003 19:48:06 -0000 In the last episode (Apr 16), Poul-Henning Kamp said: > In message <3E9DB047.50202@sfmidimafia.com>, "Scott R." writes: > >This may be a stupid question, but hopefully it is easily > >answerable. I've done some poking around on the man page for devfs > >and I can't really find anything that tells me how to create a > >"fictitious" entry. Some apps that play or read cd's need the > >device /dev/cdrom to exist for them to work. I can create a link > >manually just using ln -sf /dev/acd0 /dev/cdrom and the entry will > >stay there until I reboot the machine. Upon reboot, the entry is > >wiped out as devfs re-initializes itself (this is my guess anyway). > >Can anyone tell me how to properly create these types of device > >entries so that they are recreated each time the system boots? > >There's either not much documentation on this subject or I'm just > >not looking in the right place. Pointers and suggestions will be > >greatly appreciated. > > I belive /etc/rc.devfs was meant for this sort of stuff, but I am not > sure I know if this is still politically correct in RCng days. /etc/rc.d/devfs will source /etc/rc.devfs if it exists, so it will still work. -- Dan Nelson dnelson@allantgroup.com