Q: tty Parameter in login.config
Gert Doering (gert@greenie.muc.de)
Mon, 28 Apr 1997 19:18:43 +0200
Hi,
Karl Feichtinger wrote:
> How can I accomplish the following feature: I invoke a pppd via the
> AutoPPP feature. This pppd needs a parameter which is dependent on the
> current tty interface, e.g. if the incoming call is on ttyS0, the pppd
> shall be invoked via
> "pppd file options.ttyS0.incoming" etc.
Start a script (pppd.sh) instead of pppd, and in the script use something
like this:
---------
#!/bin/sh
TTY=`tty` # backquotes!!
pppd file options.$TTY.incoming
---------
gert
--
USENET is *not* the non-clickable part of WWW!
//www.muc.de/~gert/
Gert Doering - Munich, Germany gert@greenie.muc.de
fax: +49-89-3545980 gert.doering@physik.tu-muenchen.de
.