[Prev][Next][Index]

ppp script - USrobotics sporster



Enclosed is my script, used for connecting me to internet gold via
USrobotics Sporster 28,800 modem.

loginname - your login ID name.
your_password - your password.

If you want to have all messages send to console/file, add the
following lines to your /etc/syslog.conf file :
NOTE: MUST USE 'TABS' here, not SPACES !!.

local2.*		/dev/console
local2.*		/usr/adm/ppplog

and add the switch 'debug' to pppd line.


The chat session performs:

wait for "ost:" ([Hh]ost:) string,
(if not received, perform <CR> once),
when "?ost:" received, continue.
reply with "euronet",
wait for ?sername: string,
reply with "loginname"
wait for "ssword:" string
reply with "your_password".


Regards,

	Yossi Amon

I don't use line breaks - '\', they are added for readability.

--------ppp-gold----------
#!/bin/sh

# clear log file:
# cat /dev/null > /usr/adm/ppplog

## Script for dynamic IP address assignment.
## For debugging: debug
## For keeping chat in fg: -detach
/usr/sbin/pppd  asyncmap 00000000 netmask 255.255.255.0 \
  connect '/usr/sbin/chat -v -t 15 "" ATB0E1F1M3Q0V1X4\&A3\&B1\&C1\&D2 OK AT\&H1\&I0\&K1\&M4\&N0\&R2\&S1S0=2 OK ATDT5755855  ost:--ost: euronet sername: loginname ssword: your_password ' \
 /dev/cua1 38400 noipdefault crtscts modem defaultroute 0.0.0.0:205.164.141.8

------- end -------