home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!faculty!nmrdc1!dsc3pzp
- From: dsc3pzp@nmrdc1.nmrdc.nnmc.navy.mil (Philip Perucci)
- Newsgroups: comp.os.linux
- Subject: Re: script for ttys modem call-in/call-out
- Message-ID: <Bzz5J2.D8p@nmrdc1.nmrdc.nnmc.navy.mil>
- Date: 28 Dec 92 14:57:01 GMT
- References: <1992Dec28.071555.7279@exucom.com>
- Organization: Naval Medical Research & Development Command
- Lines: 37
-
- 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"
- ===========================================================================
-