Dial-in and Dial-out on same line

Oliver Boehmer oli at odbffm.incom.de
Mon Feb 4 06:56:13 AEST 1991


In <1826 at chinacat.Unicom.COM> chip at chinacat.Unicom.COM (Chip Rosenthal) writes:

>In article <1991Jan31.065819.28093 at odbffm.incom.de> oli at 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 at odbffm.incom.de
+49-69-331461 (voice) +49-60-308265 (1200/2400)
If God is perfect, why did He create discontinuous functions?



More information about the Comp.unix.xenix.sco mailing list