home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / linux / 21879 < prev    next >
Encoding:
Internet Message Format  |  1992-12-28  |  1.0 KB

  1. Path: sparky!uunet!spool.mu.edu!uwm.edu!cs.utexas.edu!rutgers!ub!exucom.com!bribbeck
  2. From: bribbeck@exucom.com (Bob Ribbeck)
  3. Newsgroups: comp.os.linux
  4. Subject: modem call-in/callout script
  5. Message-ID: <1992Dec28.071008.7135@exucom.com>
  6. Date: 28 Dec 92 07:10:08 GMT
  7. Organization: ExuCom Multimedia Inc.
  8. Lines: 25
  9. X-Newsreader: TIN [version 1.1 PL8]
  10.  
  11.  
  12.   Since the Linux wizards can't seem to creat a uugetty that will work 
  13. for callin and call out use this script.  It will check if uugety has a
  14. lock, then kill the old uugetty & init, call kermit (or your favorite)
  15. and when finished reinstall uugetty and reinit back to call in mode.
  16. All it needs is a inittab.old in /etc which is just a copy of inittab
  17. without the uugetty of your ttys?.  You may need to change the ttys0 in
  18. the script to your ttys#.
  19.  
  20.  
  21. if [ ! -s /usr/spool/uugetty ]
  22. ten
  23.   cp /etc/inittab.old /etc/inittab
  24.   kill -1 1
  25.   ps > xx
  26.   awk '/s1/ {print "kill "$1}' xx >yy
  27.   chmod 777 yy
  28.   yy
  29.   rm xx yy
  30.   kermit
  31.   echo ttys1:vt100:/etc/uugetty ttys1 2400 >> /etc/inittab
  32.   kill -1 1
  33. else
  34.   echo modem busy
  35. fi
  36.