Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Apr 2003 21:44:22 +0200
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        "Scott R." <fluid@sfmidimafia.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Possibly silly question about creating entries in /dev 
Message-ID:  <33139.1050522262@critter.freebsd.dk>
In-Reply-To: Your message of "Wed, 16 Apr 2003 12:34:31 PDT." <3E9DB047.50202@sfmidimafia.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?33139.1050522262>