home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / linux / 8211 < prev    next >
Encoding:
Text File  |  1992-08-14  |  2.1 KB  |  61 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!gatech!bloom-beacon!bloom-picayune.mit.edu!daemon
  3. From: Ching-Hsiang Chen <chchen@stat.fsu.edu>
  4. Subject: Dial-in and kill -HUP 1
  5. Message-ID: <1992Aug14.114659.26666@athena.mit.edu>
  6. Sender: daemon@athena.mit.edu (Mr Background)
  7. Reply-To: chchen@stat.fsu.edu
  8. Organization: The Internet
  9. Date: Fri, 14 Aug 1992 11:46:59 GMT
  10. Lines: 49
  11.  
  12.  
  13.  Thanks to those who were so kind to help me in modem dial-in
  14. problem. Since the getty_ps program needs M4 to compile the
  15. manual pages and I am so lazy, I adopt the original getty
  16. approach. I created the following 4 files to make things easy.
  17. To allow remote dial-in, I just give the command 'dialin' and
  18. to restore the modem and/or to allow dial-out, I use 'dialout'.
  19. One small problem is that the 'init' and 'kill' from MCC-INTERIM
  20. 0.96 root disk can not work together to allow 'kill -HUP 1'
  21. to kill the spawned getty. I need to retype 'kill -HUP 1'
  22. several times or to kill the process by its job ID in order
  23. to make it disapper under 'ps gu'. Any idea?
  24.  
  25. Steve Chen              chchen@stat.fsu.edu
  26.  
  27.    file name 'dialin' (put in /root/bin )
  28. --------------------------- cut here -----------------
  29. #! /bin/sh
  30. cp /etc/inittab1 /etc/inittab
  31. echo ate0s0=2 >> /dev/ttys1
  32. kill -HUP 1
  33. --------------------------- cut here -----------------
  34.  
  35.    file name 'dialout' (put in /root/bin )
  36.  
  37. --------------------------- cut here -----------------
  38. #! /bin/sh
  39. cp /etc/inittab0 /etc/inittab
  40. echo ate1s0=0 >> /dev/ttys1
  41. kill -HUP 1
  42. --------------------------- cut here -----------------
  43.  
  44.     file name 'inittab0'  (put in /etc)
  45.  
  46. --------------------------- cut here -----------------
  47. tty1:console:/bin/getty 9600 tty1
  48. tty2:console:/bin/getty 9600 tty2
  49. tty3:console:/bin/getty 9600 tty3
  50. tty4:console:/bin/getty 9600 tty4
  51. --------------------------- cut here -----------------
  52.  
  53.     file name 'inittab1'  (put in /etc)
  54.  
  55. --------------------------- cut here -----------------
  56. tty1:console:/bin/getty 9600 tty1
  57. tty2:console:/bin/getty 9600 tty2
  58. tty3:console:/bin/getty 9600 tty3
  59. tty4:console:/bin/getty 9600 tty4
  60. ttys1:vt100:/bin/getty 2400 ttys1
  61.