Can mgetty count rings and do something useful with it?

Roy Millar (rmill@Millstream.ednet.co.uk)
Fri, 11 Jun 1999 09:37:09 +0100


A very quick check would seem to indicate that xringd can in fact
co-exist with mgetty, even on the same serial line, without having to
play with the RI signal on modem cables.

I created an /etc/nologin.ttyS0 file to prevent mgetty from
auto-answering the line, and checked that it didn't answer.

Then set up xringd to detect two rings about 5 seconds apart on ttyS0,
and if seen to send a 'killall -10 mgetty' (10 being SIGUSR1 on a Linux
system) so that mgetty would answer the phone anyway.

Of course xringd could have required a different ring pattern, and used
a script to do more elaborate things like changing mgetty config files
and sending a 'killall -HUP mgetty' before the SIGUSR1; I don't see any
reason why that should not also work.

Anyway, however ugly it may be, it worked for me.


-- 
Roy Millar,                                finger rmill@shell.ednet.co.uk or
rmill@Millstream.ednet.co.uk               access http://www.ednet.co.uk/~rmill
100044.14@CompuServe.com                   for PGP public key

"It is never difficult to distinguish between a Scotsman with a
grievance and a ray of sunshine."       -       P.G. Wodehouse