How to symlink devfs devices?

Polytropon freebsd at edvax.de
Wed Jul 8 21:46:12 UTC 2009


On Wed, 08 Jul 2009 07:33:42 -0500, "Sagara Wijetunga" <sagara at 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, ...


More information about the freebsd-questions mailing list