NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: ldattach(8) alike util in NetBSD?



In article <54E19D8B.8010508%msys.ch@localhost>, Marc Balmer  <marc%msys.ch@localhost> wrote:
>
>
>Am 16.02.15 um 02:52 schrieb Dave Huang:
>> On Sun, Feb 15, 2015 at 11:26:48PM +0100, Fredrik Pettai wrote:
>>> Hmmm, it doesnâ??t seem to work wellâ?¦
>>>
>>> rpi# slattach (-l) -n -s 460800 /dev/ttyU0 (or ttyU1)
>>> slattach: TIOCSLINED: Device not configured
>> 
>> Are you actually trying to attach a line discipline, or do you just
>> want to set the baud rate? If you only need to set the baud rate, try
>> stty. E.g., stty -f /dev/ttyU0 460800
>> 
>> slattach is for attaching a SLIP (sl) network device to the serial
>> port.
>
>Actually that is not correct.  In NetBSD, slattach is used to attach
>_any_ line discipline (by name).

We should install a copy as ldattach and have the line-discipline setting
optional if it is invoked as ldattach (instead of trying slip).

christos



Home | Main Index | Thread Index | Old Index