Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Dec 2007 21:49:35 -0800
From:      David Newman <dnewman@networktest.com>
To:        freebsd-questions@freebsd.org
Subject:   preserving device symlinks across reboots
Message-ID:  <475E24EF.7040601@networktest.com>

next in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

To use ntpd with an HP GPS receiver on RELENG-6.2, I have a symlink from
the first serial port to the HP GPS device:

somehost# ls -l /dev/hpgps0
lrwxr-xr-x  1 root  wheel  10 Dec  1 21:06 /dev/hpgps0 -> /dev/cuad0

This works fine since the GPS receiver is attached to cuad0.

Problem is, this symlink disappears whenever a reboot is needed, for
example after patching the kernel.

How best to preserve the symlink across reboots? I created an rc.local
file making a new symlink, but maybe there's a better way.

thanks

dn

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFHXiTvyPxGVjntI4IRAtEZAKDyOsiRL1ilB3yUwGGH79IeZ65l6QCgrc2V
OfqdzIvR9ua1kVtD+bdCzRc=
=pfFP
-----END PGP SIGNATURE-----



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