home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 10
/
aminetcdnumber101996.iso
/
Aminet
/
comm
/
tcp
/
SLIPScripts1_3.lha
/
SLIPResume.rexx
next >
Wrap
OS/2 REXX Batch file
|
1995-02-03
|
2KB
|
41 lines
/* SLIPResume.rexx ver 1.3 Feb. 3, 1995 by Travis Pascoe */
/* pasc8891@raven.csrv.uidaho.edu */
/* */
/* SLIPResume is an ARexx script used to restart AmiTCP slip using */
/* the previous slip IP stored in ENVARC:oldip. In order to use */
/* this script you MUST still have a modem connection with your */
/* dialup service. This can occur, for example, if you have just */
/* rebooted your computer but your modem has maintained carrier (you */
/* can ensure this if you set ignore DTR on your modem). */
/* */
/* Requirements: ARexx (obviously) */
/* AmiTCP ver 3.0b+ */
/* previous IP address stored in ENVARC:oldip */
/* and an existing connection to your SLIP provider */
/* */
/* Usage: From a cli, type: rx slipresume */
/* */
/* Warning: You WILL need to modify the script in several */
/* places to suit your host dialup settings. */
/* Follow the comments below for assistance. */
if exists('ENVARC:oldip') then do
address command
'copy ENVARC:oldip ENV:ip'
'echo "Attempting to resume SLIP with address: $ip"'
/* I use cslip and 38400 modem-computer speed, change as desired */
'echo >ENV:sana2/rhcslip0.config "serial.device 0 38400 $ip"'
/* change hostname and alias as desired */
'echo >AmiTCP:db/netdb-myhost "HOST $ip me.mydomain.edu me"'
/* change domain as needed */
'echo >>AmiTCP:db/netdb-myhost "DOMAIN 129.123.45.6"'
/* change nameserver as needed */
'echo >>AmiTCP:db/netdb-myhost "NAMESERVER 129.123.123.4"'
'startnet'
end
else do
say 'Unable to resume SLIP.'
end
exit 0