🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.networking
Article #6385

How I get PPP online again after system reboot.

#6385
From: Michael Mommertz
Date: Thu, 11 Apr 1996 01:39
90 lines
2624 bytes
Hello,

I have altered the 'AmiTCP:db/provider.conf' script to get PPP
online again after a system reboot.
If anybody knows how to do this with a simple switch please tell me :)
AmiTCP 4.2 worked by just adding the CD switch with PPP.device.

AmiTCP knows your IPAddress when you give it to it by:
set IP result
in the provider.conf script.
So what I did was save this to disk and reload it after a reboot.
The file is called 'S:IPAddress'.
When I manually stop AmiTCP I delete this file :)
I added the line 'Delete S:IPAddress' to my 'user-stopnet' file in
AmiTCP:db.

I changed the part of 'set IP result'  'MyIPAddress = result
                                        set IP MyIPAddress'

Here is my AmiTCP:db/provider script.

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

/* Provider Configuration Follows:
Name            Other
DialUp          1
Interface       ppp
InterfaceConfig "NOID ATH"
NeedSerial      1
IPDynamic       1
IPAddr          0.0.0.0
DestIP
Gateway
Netmask
NSDynamic       0
UseBootP        0
MTU             576
Phone           5443333
*/
/* The rest is the Dialer script for this provider */
options results
signal on error

if Exists('S:IPAddress') then do
 call Open(file,'S:IPAddress','R')
 call readln(file)
 set IP result
 call Close(file)
 Say "Still Connected....Continuing"
 end
else do
ShowConsole

Say "Dialing..."
call CommandState
SendLn "at&d0"

call Dial
WaitFor "login:"
SendLn "YOURLOGINNAME"
WaitFor "password:"
SendLn "YOURPASSWORD"
WaitFor "enter:"
SendLn "p"
WaitFor "ppp"
ParseAddrAfter 'your address:'
MyIPAddress = result
set IP MyIPAddress
 call Open(file,'S:IPAddress','Write')
 call writeln(file,MyIPAddress)
 call Close(file)
HideConsole
end

exit 0; /* Successful exit */

error:
Say "Command on line" SIGL "returned" RC ":" SerScript.LASTERROR
Exit 10

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



--
Michael Mommertz             Heerlen, The Netherlands
michaelm@cuci.nl      Connecting To The InterNet With An
       Amiga 2000/68030/25Mhz/17MB/Picasso II/CyberGraphX/AmiTCP/PPP.device
 Author Of: Taper and FujSetup.  Both On Aminet --> text/print
Technical Details
Message-ID: <2195.6675T132T25@cuci.nl>
Path: arc1-ca.pugleaf.net!cuci.nl!news

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!cuci.nl!news
From: michaelm@cuci.nl (Michael Mommertz)
Newsgroups: comp.sys.amiga.networking
Subject: How I get PPP online again after system reboot.
Date: 11 Apr 1996 01:39:12 GMT
Organization: Cubic Circle
Message-ID: <2195.6675T132T25@cuci.nl>
Reply-To: michaelm@cuci.nl (Michael Mommertz)
NNTP-Posting-Host: d17.din.cuci.nl
X-Newsreader: THOR 2.22 (Amiga;TCP/IP)