turn off modem during the day

Matt White (whitem@bofh.usask.ca)
Wed, 24 Sep 1997 20:17:51 +0200


On Wed, 24 Sep 1997, Mate Wierdl wrote:

> I have my modem in my office set up for dialin via mgetty (Linux
> Redhat 4.1, mgetty mgetty-1.0.0). 
> 
> The University has a voicemail system which I would like to use while
> I am in the office, otherwise I 'd like mgetty and the modem answer
> the phone when I leave. 
> 
> Can I do this simply without playing with the mgetty entry in inittab
> and rebooting (or init q). What if I just simply turn the modem off
> while I am in the office? Would mgetty get confused after a while, or
> it will just report to the log file that the modem is off, and it will
> get back to business as soon as the modem is turned on?

I just use a couple of crontab entries for mine:

30 17 * * mon-fri rm /etc/nologin.ttyS5 2> /dev/null
30 7 * * mon-fri  touch /etc/nologin.ttyS5

The nologin.ttyname file tells mgetty not to answer that line. You don't
have to 'init -q' or anything - mgetty checks for the file everytime the
phone rings, as far as I can tell.
 
---------------------------------------------------------------------
- Matt White     whitem@arts.usask.ca   -
- Network Technical Support  http://arts.usask.ca/~whitem -
- College of Arts & Science  University of Saskatchewan  -
---------------------------------------------------------------------
She said her name was emergency and asked to see my gun
Said her telephone number was 9 - 1 - 1.
	- The Tractors..."Baby Likes to Rock It"

.