Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!mcsun!unido!wrkof!odbffm.incom.de!oli From: oli@odbffm.incom.de (Oliver Boehmer) Newsgroups: comp.unix.xenix.sco Subject: Re: Dial-in and Dial-out on same line Keywords: getty Message-ID: <1991Feb3.195613.25994@odbffm.incom.de> Date: 3 Feb 91 19:56:13 GMT References: <1973@Terra.cc.brunel.ac.uk> <1991Jan31.065819.28093@odbffm.incom.de> <1826@chinacat.Unicom.COM> Lines: 29 In <1826@chinacat.Unicom.COM> chip@chinacat.Unicom.COM (Chip Rosenthal) writes: >In article <1991Jan31.065819.28093@odbffm.incom.de> oli@odbffm.incom.de (Oliver Boehmer) writes: >>To install a modem for both in-and out-dial use you have to assign the >>/usr/lib/uucp/uugetty process to it > $ ls -l /usr/lib/uucp/uugetty > /usr/lib/uucp/uugetty not found >Sorry. oops, oh well, then you have to do another trick, this involves enabling and disabling the port whenever you need it to dial out. Look, if init supports different run-levels than 12345, mine does support alphanumeric run-levels. Anyway. Set up the inittab-line for your tty like that: xxxx:2:respawn:/etc/getty.... The xxxx is the name, you know. This means that getty is only running in init-state 2. To disable this modem for dial-out use, all you have to do is change to init-state 3. The port will be disabled. This is a dirty trick, since only the super-user can switch run-levels, but what the hack.. You can enter the init-command in root's crontab an enable dial-out time for specified periods only... Watch out that all the other fields in /etc/inittab include run-level 3. Hope I could help you... bye, oli -- --------------------------------------------------------------------- Oliver Boehmer, Frankfurt, Germany oli@odbffm.incom.de +49-69-331461 (voice) +49-60-308265 (1200/2400) If God is perfect, why did He create discontinuous functions?