Apparently, either of the first two phone numbers above (7179 and 8140) is supposed to automatically transfer the incoming call to an unused line, whereas the third number (6824) is just for one particular line. Thus, in theory, either of those first two numbers should be sufficient. Alas, there have been occasional problems with the phone lines leading to the department, and there have been times when neither of the first two numbers would work but the third one would.
chown root.root /usr/local/bin/mit1-up chmod 755 /usr/local/bin/mit1-up
chown root.root /etc/ppp/chat-mit1 chmod 400 /etc/ppp/chat-mit1
'~' 'slirp -P'near the bottom of that file to replace that tilde '~' with whatever your command prompt is, e.g., if your command prompt is a percent sign, then you'd want
'%' 'slirp -P'or perhaps your prompt requires the line
'Command?' 'slirp -P'
chown root.root /usr/local/bin/mit-down chmod 755 /usr/local/bin/mit-down
ln -s /dev/ttyS0 /dev/modem
nameserver 10.0.2.3to the top of that file. (The address 10.0.2.3 is used by the slirp program to connect you to the nameservers used by the machine to which you've dialed up. Thus, putting 10.0.2.3 in your /etc/resolv.conf as a nameserver is equivalent to putting the IP address of at least one MIT nameserver there.)
If you don't want to have to become root to do this, then either look into the sudo command (so that you can just give the commands "sudo mit1-up" and "sudo mit-down"), or else set the pppd suid to root, which should make this doable by any user of your machine.
#!/bin/sh (/usr/sbin/pppd connect '/usr/sbin/chat \ -f /etc/ppp/chat-mit1'\ /dev/modem 115200 defaultroute -detach modem lock\ crtscts )&
'ABORT' 'BUSY' 'ABORT' 'ERROR' 'ABORT' 'NO CARRIER' 'ABORT' 'NO DIALTONE' 'ABORT' 'Invalid Login' 'ABORT' 'Login incorrect' '' 'ATZ' 'SAY' '\nDialing MIT at 1-617-258-7179...\n' 'OK' 'ATDT1-617-258-7179' 'CONNECT' '' 'SAY' '\nLogging in...\n' # # # The following line waits for your login prompt # and then send your username. It should look like # 'ogin:--ogin:' 'USERNAME' 'ogin:--ogin:' 'USERNAME' # # # The following line waits for the password prompt # and then sends your password. It should look like # 'sword:' '\qPASSWORD' # That \q before your actual password tells the chat progrm # that it should *not* echo your password to any logging # facility that might be active (for debugging, etc.): 'ord:' '\qPASSWORD' 'SAY' '\nWaiting to set terminal type...\n' 'erminal--erminal' 'vt100' 'SAY' '\nWaiting for command prompt...\n' # # # The following line needs to wait for your command prompt # and then send the command 'slirp -P'. Since my command # prompt is the tilde character "~", I have that line as # '~' 'slirp -P' # If you have some other character as your command prompt, # e.g., the percent character '%', then you should change it to # '%' 'slirp -P' '~' 'slirp -P' 'Ready' '\c' 'SAY' '\nSlirp is running.\n'
#! /bin/sh echo Bringing down connection to mit... set `ps aux|grep pppd|grep -v grep` kill $2 echo "...done"