Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Jul 2005 12:09:26 +0200
From:      Marcin Jessa <lists@yazzy.org>
To:        Andrew Milton <akm@theinternet.com.au>
Cc:        current@freebsd.org
Subject:   Re: getty replacement
Message-ID:  <20050705120926.57cc6481.lists@yazzy.org>
In-Reply-To: <20050705100346.GM56644@camelot.theinternet.com.au>
References:  <20050705115234.44adc0ed.lists@yazzy.org> <20050705100346.GM56644@camelot.theinternet.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 5 Jul 2005 20:03:46 +1000
Andrew Milton <akm@theinternet.com.au> wrote:

> +-------[ Marcin Jessa ]----------------------
> | Hi guys.
> | 
> | 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 ?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050705120926.57cc6481.lists>