Re: getty replacement

From: Andrew Milton <akm_at_theinternet.com.au>
Date: Tue, 5 Jul 2005 20:03:46 +1000
+-------[ 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.

-- 
Andrew Milton
akm_at_theinternet.com.au
Received on Tue Jul 05 2005 - 08:03:53 UTC

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