Re: getty replacement

From: Andre Guibert de Bruet <andy_at_siliconlandmark.com>
Date: Fri, 8 Jul 2005 05:34:19 -0400 (EDT)
On Tue, 5 Jul 2005, Marcin Jessa wrote:
> On Tue, 5 Jul 2005 20:03:46 +1000
> Andrew Milton <akm_at_theinternet.com.au> wrote:
>> +-------[ Marcin Jessa ]----------------------
>> | Is there any way to replace "/usr/libexec/getty Pc"  with a custom application and what would be requirements for such an app?
>>
>> It's definitely do-able with compiled code.
>>
>> | Running
>> | ttyv0 "/some/app/shell_code.sh Pc" cons23 on secure
>> | gives me:
>> | init: getty repeating too quickly on port /dev/ttyv0, sleeping 30 secs
>> | and my code is not executed.
>>
>> This won't work, because shell scripts aren't directly executable. The shell
>> handles parsing the #!/bin/sh header and executing them for you.
>
> Putting /bin/sh to parse  #!/bin/sh header infront of it does not change that behaviour, which should work according to what you said.
> Are there any other requirements besides having compiled code ?

Your application should not return control to init many times within a few 
seconds, lest you see the dreaded "repeating too quickly" message.

Andy

/*  Andre Guibert de Bruet  * 6f43 6564 7020 656f 2e74 4220 7469 6a20 */
/*   Code poet / Sysadmin   * 636f 656b 2e79 5320 7379 6461 696d 2e6e */
/*   GSM: +1 734 846 8758   * 5520 494e 2058 6c73 7565 6874 002e 0000 */
/* WWW: siliconlandmark.com *      Tormenting bytes since 1980.       */
Received on Fri Jul 08 2005 - 07:34:26 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:38 UTC