[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
PPP on 135: My 2 bits
This is a script that is to be called instead of ppp-on to connect via 135
to the Internet in Israel. It takes one argument: the provider number from the
table that pops up after dialing in. Got me out of pinch more than once.
To turn the connection off, use ppp-off as before. Note that some
providers don't work straight (for reasons I did not investigate more
closely - probably proprietary software and/or chap, pap and god knows
what else), and others just don't work although listed.
--snip--
#!/bin/sh
#
# ppp-on
#
# Set up a PPP link via 135
#
if [ -z "$1" ]; then
echo "ppp-on.135: usage: ppp-on.135 provider_id" >&2
exit 1
fi
DEVICE=/dev/modem
PHONE=135
(
stty 38400 -tostop
if chat "" ATZ "OK" ATDT$PHONE "rovider:" $1
then
pppd
exit 0
else
echo "PPP call failed" 1>&2
exit 1
fi
) <$DEVICE >$DEVICE 2>/dev/null &
--snap--
And the pppd options that go with this:
modem lock crtscts defaultroute silent
And for name resolution, /etc/resolv.conf will contain:
domain YOUR.ISPS.DOMAIN.HERE
nameserver THE.ISPS.NAME.SERVER
nameserver A.GOOD.NAME.SERVER
And /etc/host.conf:
order hosts,bind
multi on
bind is not running (must be killed if it is and is a nameserver in this
machine - there is no need to delete its entry in host.conf).
One more hint: It seems to me that stty -tostop is the answer the guys
with the mgetty / fax tangle are looking for. Unless one of those does
something else to the port itself.
Wear this in good health, and remember there is no warranty ;)
Peter (plp)