home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!gatech!bloom-beacon!bloom-picayune.mit.edu!daemon
- From: Ching-Hsiang Chen <chchen@stat.fsu.edu>
- Subject: Dial-in and kill -HUP 1
- Message-ID: <1992Aug14.114659.26666@athena.mit.edu>
- Sender: daemon@athena.mit.edu (Mr Background)
- Reply-To: chchen@stat.fsu.edu
- Organization: The Internet
- Date: Fri, 14 Aug 1992 11:46:59 GMT
- Lines: 49
-
-
- Thanks to those who were so kind to help me in modem dial-in
- problem. Since the getty_ps program needs M4 to compile the
- manual pages and I am so lazy, I adopt the original getty
- approach. I created the following 4 files to make things easy.
- To allow remote dial-in, I just give the command 'dialin' and
- to restore the modem and/or to allow dial-out, I use 'dialout'.
- One small problem is that the 'init' and 'kill' from MCC-INTERIM
- 0.96 root disk can not work together to allow 'kill -HUP 1'
- to kill the spawned getty. I need to retype 'kill -HUP 1'
- several times or to kill the process by its job ID in order
- to make it disapper under 'ps gu'. Any idea?
-
- Steve Chen chchen@stat.fsu.edu
-
- file name 'dialin' (put in /root/bin )
- --------------------------- cut here -----------------
- #! /bin/sh
- cp /etc/inittab1 /etc/inittab
- echo ate0s0=2 >> /dev/ttys1
- kill -HUP 1
- --------------------------- cut here -----------------
-
- file name 'dialout' (put in /root/bin )
-
- --------------------------- cut here -----------------
- #! /bin/sh
- cp /etc/inittab0 /etc/inittab
- echo ate1s0=0 >> /dev/ttys1
- kill -HUP 1
- --------------------------- cut here -----------------
-
- file name 'inittab0' (put in /etc)
-
- --------------------------- cut here -----------------
- tty1:console:/bin/getty 9600 tty1
- tty2:console:/bin/getty 9600 tty2
- tty3:console:/bin/getty 9600 tty3
- tty4:console:/bin/getty 9600 tty4
- --------------------------- cut here -----------------
-
- file name 'inittab1' (put in /etc)
-
- --------------------------- cut here -----------------
- tty1:console:/bin/getty 9600 tty1
- tty2:console:/bin/getty 9600 tty2
- tty3:console:/bin/getty 9600 tty3
- tty4:console:/bin/getty 9600 tty4
- ttys1:vt100:/bin/getty 2400 ttys1
-