Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Jul 2009 23:46:03 +0200
From:      Polytropon <freebsd@edvax.de>
To:        "Sagara Wijetunga" <sagara@tomahawk.com.sg>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: How to symlink devfs devices?
Message-ID:  <20090708234603.1bc9b315.freebsd@edvax.de>
In-Reply-To: <20090708123342.22660.qmail@us1.tomahawkonline.net>
References:  <20090708123342.22660.qmail@us1.tomahawkonline.net>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Wed, 08 Jul 2009 07:33:42 -0500, "Sagara Wijetunga" <sagara@tomahawk.com.sg> wrote:
> Hi 
> 
> Is it possible to create a symlink to a device and use the symlink in place 
> of the real device name in FreeBSD, especially in version 7.2? 
> 
> 1. A disk
>    /dev/camera -> /dev/da0s1 
> 
> 2. A network device
>    re0 -> lan0 

That's no problem: Use the "link" statement: "link <source> <target>",
such as

	link	da0s1	camera
	link	re0	lan0

in you /etc/devfs.conf file. See the manual page for this file for
more information, or see the example entries in this file.



-- 
Polytropon
>From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20090708234603.1bc9b315.freebsd>