# Dial-in script for Linux using DIP-3.3.7o-uri.
# By Uri Blumenthal (uri@watson.ibm.com).
# 
# Utilized Linux script offered by Advantis.
#
# Modem string is for USR Sportster V.34+ 33.6 Data/Fax.
#
# Use this script for Advantis and IGN networks.

main:
  get $remote 129.37.0.0
  netmask 255.255.255.0
  default

  # Set the desired serial port and speed.
  # Note - you should NOT use cua devices!
  port ttyS1
  speed 115200
  databits 8
  parity n

  # Put in an appropriate modem string (this one is for USR Sportster)
  send AT&F&D2&C1X4V1Q0S7=70&K1&M4&H1&B1\r
  # Note! "Standard" pre-defined "errlevel" values:
  #       0 - OK
  #       1 - CONNECT
  #       2 - ERROR
  #
  # You can change those grep'ping for "addchat()" in *.c...
  chatkey       NO\sCARRIER     4
  chatkey       NO\sDIALTONE    5
  chatkey       BUSY            6

  # your local access number
  dial 555-1212 # CHANGE THIS!!
  if $errlvl != 1 goto modem_trouble

# We are connected.  Login to the system.

login:
  sleep 2
  send &\r
  wait ==> 20
  if $errlvl != 0 goto login_error
  send 1.0\r
  wait ==> 20
  send INTERNET\r
  wait ==> 20
  if $errlvl != 0 goto password_error

  #send (account) (userid) (password)\r
  send USINET youruserid yourpasswd\r
  get $locip  remote 10
  send \r
  get $rmtip remote 10

loggedin:
  get $mtu 600
  timeout 1800

done:
  print CSLIP CONNECTED $locip ---> $rmtip
  mode CSLIP
  goto exit

prompt_error:
  print TIME-OUT waiting for SLIPlogin to fire up...
  goto error

login_trouble:
  print Trouble waiting for the Login: prompt...
  goto error

password_error:
  print Trouble waiting for the Password: prompt...
  goto error

modem_trouble:
  print Trouble ocurred with the modem...

error:
  print CONNECT FAILED to $remote
  quit

exit:
  exit

#SETTING UP INTERNET APPLICATIONS
#--------------------------------
#
#Use the following information to configure your internet applications
#like Mosaic, Netscape, Eudora, Free Agent, etc.
#
#Domain Name Server . : 165.87.194.244
#  - backup . . . . . : 165.87.201.244
#
#SMTP Server. . . . . : smtp-gw01.ny.us.ibm.net
#                       This allows you to send your email on the Internet
#                       it stands for Simple Mail Transfer Protocol.
#
#WWW Server . . . . . : http://www.ibm.net
#                       This is the site you should point your browser to.
#
#News Server . . . .  : news-s01.ny.us.ibm.net
#                       This allows you to view newsgroups.  Also referred
#                       to as NNTP (Network News Transfer Protocol.)
#
#Mail Server . . . .  : This is where your email is stored on the Internet
#                       This is also referred to as a POP3 server.
#                       The IBM Internet Service has two mail servers and
#                       you would be assigned one of the two:
#                       pop01.ny.us.ibm.net or pop03.ca.us.ibm.net
#                       Try both until you receive your email properly.
#
#For Problems Read the Following:
#--------------------------------
#Contact Advantis at 1-800-821-4612 for any network problems and there is
#no software support.
