From owner-freebsd-current@FreeBSD.ORG Wed Apr 16 12:44:27 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 6B4DE37B401 for ; Wed, 16 Apr 2003 12:44:27 -0700 (PDT) Received: from critter.freebsd.dk (port757.uc1-esp.isdn-lan.cybercity.dk [212.242.98.245]) by mx1.FreeBSD.org (Postfix) with ESMTP id 01C1843FCB for ; Wed, 16 Apr 2003 12:44:26 -0700 (PDT) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.9/8.12.9) with ESMTP id h3GJiM6W033140; Wed, 16 Apr 2003 21:44:23 +0200 (CEST) (envelope-from phk@phk.freebsd.dk) To: "Scott R." From: "Poul-Henning Kamp" In-Reply-To: Your message of "Wed, 16 Apr 2003 12:34:31 PDT." <3E9DB047.50202@sfmidimafia.com> Date: Wed, 16 Apr 2003 21:44:22 +0200 Message-ID: <33139.1050522262@critter.freebsd.dk> 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:44:27 -0000 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. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.