Comment 5 for bug 560405

Revision history for this message
Michael R. (michael-insulin-pumpers) wrote : Re: [Bug 560405] Re: usblogin does not launch

> Hi Michael,
>
> you're right, I wrote this on a Debian system and Debian is using
> agetty. Until now I wasn't really aware of the fact that there could
> be different getty's on different systems :-) Unfortunately the binary
> on Debian is called "getty" and not "agetty" - there isn't even a
> link:
>
> iserv ~ # LANG=C ll /sbin/{a,}getty
> ls: cannot access /sbin/agetty: No such file or directory
> -rwxr-xr-x 1 root root 15K 29. Apr 2008 /sbin/getty*
>
> So the most elegant solution (check for either agetty or getty and use
> the respective options) does not seem to be possible. Ah, I guess I'll
> just check for Debian and then use agetty options and else fall back
> to the options you have posted; I hope that'll be supported on all
> getty's. Thanks for the bug report!
>
> --

how about checking the string that comes out of "getty -v". It will
be unique for the particular kind(s) of getty(s) that is/are found on
the target system. You can use grep, sed, awk, whatever to look for a
particular option string that marks that getty as unique and having
the options you need in your script.

getty, mgetty, agetty

Cheers,
Michael

> usblogin does not launch
> https://bugs.launchpad.net/bugs/560405
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in usbconsole: New
>
> Bug description:
> syslog says
> Apr 10 17:34:23 zafir getty[4838]: ^M getty:Usage:^I [options] line
> [speed [term [lined]]]^M
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/usbconsole/+bug/560405/+subscribe