home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!spool.mu.edu!uwm.edu!cs.utexas.edu!rutgers!ub!exucom.com!bribbeck
- From: bribbeck@exucom.com (Bob Ribbeck)
- Newsgroups: comp.os.linux
- Subject: script for ttys modem call-in/call-out
- Message-ID: <1992Dec28.071555.7279@exucom.com>
- Date: 28 Dec 92 07:15:55 GMT
- Organization: ExuCom Multimedia Inc.
- Lines: 26
- X-Newsreader: TIN [version 1.1 PL8]
-
-
- 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
-