Essentially, you just need to put your script in place of the getty (or variant). I'm not familiar enough with BSD to know if it is handled in exacly the same manner, but for a typical linux distro, you control this in your /etc/inittab file. I haven't monkeyed with it myself, but I think that you could get away with just changing:
1:2345:respawn:/sbin/mingetty tty1
to
1:2345:respawn:/sbin/myscript.pl tty1
Anyway, that's a good place to start trying.
------------
:Wq
Not an editor command: Wq
| [reply] [d/l] [select] |
I did actualy try this but it it seems the os objects to having a tty replaced with anythinh but a properly written tty, or at least it objects to having something that doesnt behave the same way :)
| [reply] |
I take that back, editing the ttys file does work, but you have to set the type to unkown!
Still using term::readkey in conjunction with that seems to herrald the best results.
| [reply] |
If you want to turn input echo on and off, you need to use a module such as Term::ReadKey. It's ReadKey method allows you to turn echo on and off (it can also read
stuff immediately, without input buffering).
| [reply] |
This works like a charm, im not sure how I managed to miss it tbh as it was on the first page of the search results from cpan, ta muchly :)
Moral of the story, dont search cpan at 3am :D
| [reply] |