preserving device symlinks across reboots

Tino Engel elrap at web.de
Mon Dec 10 22:12:17 PST 2007


David Newman schrieb:
> -----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-----
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
>
>   
Check out 'man devfs.conf'

Greez, Tino


More information about the freebsd-questions mailing list