[PLUG] Loss of symbolic link in /dev on re-boot
Eric Wilhelm
scratchcomputing at gmail.com
Thu Dec 27 18:36:30 UTC 2007
# from Richard C. Steffens
# on Thursday 27 December 2007 09:28:
>It occurs to me that another possibility would be to create the
> symbolic link in the same directory as the X10 program config file
> (so I'll know where to find it). That way, if sometime down the road
> I needed to change from ttyS0 to ttyS1 (or something like that), I
> could just recreate the link. And, the link would not go away on
> re-boot.
It just clicked for me that this is not a usb serial port -- guess I
thought the regular ones were extinct :-D
Yes, it would be simpler to do without udev, but I think you might want
to go with a line in rc.local ('ln -s ttyS0 /dev/X10') rather than
having a link to a device outside of /dev (where one would otherwise
expect a directory of regular files.)
Consider:
grep foo /dev/ttyS0
That probably hangs because it never gets EOF -- at least that's how my
treo behaves. Thus, you'll be setting yourself up for a future
head-scratching if you have a link to the device laying around
somewhere and you do a `grep -r` there.
--Eric
--
If the above message is encrypted and you have lost your pgp key, please
send a self-addressed, stamped lead box to the address below.
---------------------------------------------------
http://scratchcomputing.com
---------------------------------------------------
More information about the PLUG
mailing list