From: Bob Ribbeck (bribbeck@exucom.com)
Date: 12/28/92


From: bribbeck@exucom.com (Bob Ribbeck)
Subject: modem call-in/callout script
Date: 28 Dec 1992 07:12:53 GMT


  Since the Linux wizards can't seem to creat a uugetty that will work
for callin and call out use this script. It will check if uugety has a
lock, then kill the old uugetty & init, call kermit (or your favorite)
and when finished reinstall uugetty and reinit back to call in mode.
All it needs is a inittab.old in /etc which is just a copy of inittab
without the uugetty of your ttys?. You may need to change the ttys0 in
the script to your ttys#.

if [ ! -s /usr/spool/uugetty ]
then
  cp /etc/inittab.old /etc/inittab
  kill -1 1
  ps > xx
  awk '/s1/ {print "kill "$1}' xx >yy
  chmod 777 yy
  yy
  rm xx yy
  kermit
  echo ttys1:vt100:/etc/uugetty ttys1 2400 >> /etc/inittab
  kill -1 1
else
  echo modem busy
fi