From: dsc3pzp@nmrdc1.nmrdc.nnmc.navy.mil (Philip Perucci) Subject: Re: script for ttys modem call-in/call-out Date: 28 Dec 1992 14:57:01 GMT
In article <1992Dec28.071555.7279@exucom.com> bribbeck@exucom.com (Bob Ribbeck) writes:
>
> 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
"uugetty" from "getty_ps" package (sunsite and/or tsx-11) works great!
Uses file-locking to coordinate with Kermit & UUCP.
It is a Good Thing (tm)!
-- =========================================================================== phil perucci | "Any opinions expressed are solely my own views and ssb1pzp@digex.com | do not reflect the position of any organization" ===========================================================================