Home » Archimedes archive » Acorn User » AU 1995-04.adf » !Internet_StarterPak » !DemConfig/Config

!DemConfig/Config

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Archimedes archive » Acorn User » AU 1995-04.adf » !Internet_StarterPak
Filename: !DemConfig/Config
Read OK:
File size: 254E bytes
Load address: 0000
Exec address: 0000
File contents
# Configuration script for Demon setup program.
# 22 Dec 94  Colin Hogben : First full version.
# 15 Jan 95  Colin Hogben : Added fetching of IP address via SLIPdial
# 18 Jan 95  Colin Hogben : Don't wipe !NewsDir
# 19 Jan 95  Colin Hogben : Added selection of PoP
# 20 Jan 95  Colin Hogben : Modified handling of preferred PoP

#--- Fetch initial defaults for user-settable fields
cli Obey <DemConfig$Dir>.Choices
set modem DemConfig$Modem
set serial DemConfig$Serial
set cable DemConfig$Cable
set speed DemConfig$Speed
set hg DemConfig$Hg
set hgpin DemConfig$HgPin
set pop1 DemConfig$PoP

set userid DemConfig$UserId
set realname DemConfig$RealName
set org DemConfig$Org

set node DemConfig$Node
set dempw DemConfig$DemPw

#--- The IP address can be modified by the SLIPdial script
cli Obey <DemConfig$Dir>.IpAddr
set ip_addr DemConfig$IpAddr
cli BASIC -quit <DemConfig$Dir>.CheckIp
set getip DemConfig$IpValid = 0

#--- Come back here if errors in user data detected
label retry

#--- Begin the window definition
window

# Group some related options together into a box...
  group "Modem & serial interface"
    menuchoice modem "Modem type" \
 "USR Sportster=Sportster" \
 "Hayes" \
 "Other=unknown"
# N.B. the !SLIPdial.Drivers directory seems rather confused.
#  Sportster looks as if everything is commented out.
#  USR       looks like a correct Sportster set-up
#  USR2      looks like default settings (no init settings).
# ...and not a comment to be seen.  The USR settings work for my Sportster,
# but otherwise your guess is as good as mine.

    menuchoice serial "Serial port" \
 Internal=int \
 "Dual Serial card (port 0)=dual0" \
 "Dual Serial card (port 1)=dual1"
    menuchoice cable "Cable type" \
 "Arc=arc" \
 "PC=pc"
    string speed	"Serial speed"	10   0-9

    flag hg "Mercury available" "#" ""
    string hgpin "Mercury PIN"		20   0-9,

#--- Alternative spaceless versions needed to agree with SLIPdial script
    menuchoice pop1 "Main PoP" \
 "Birmingham" "Bradford" "Bristol" \
 "Cambridge" "Cardiff" "Coventry" \
 "Edinburgh" "Gloucester" "Hull" \
 "Isle of Wight=IsleOfWight" "Leeds" "Leicester" \
 "Liverpool" "London" "Luton" \
 "Manchester" "Newcastle" "Nottingham" \
 "Preston" "Reading" "Saffron Walden=Saffron" \
 "Sheffield" "Wolverhampton"
  endgroup

  group "Demon account"
#        variable name  label           len  validation
    string node		"Node name"	8   A-Za-z0-9
    string dempw	Password	8
    string ip_addr	"Internet adrs"	15 0-9.
    flag getip "Call Demon now to get IP address" 0 -1
  endgroup

  group "User details"
    string userid	Userid		8
    string realname	Name		40
    string org		Organisation	40
  endgroup

#--- Let the user fill in the details
endwindow

#--- Save the choices made so far.  Special case for null strings.
set hgq "{hg}"
if "{hgq}" = ""
  set hgq """"""
endif
set orgq "{org}"
if "{orgq}" = ""
  set orgq """"""
endif
translate <DemConfig$Dir>.Blanks.Choices <DemConfig$Dir>.Choices
translate <DemConfig$Dir>.Blanks.IpAddr <DemConfig$Dir>.IpAddr

#--- Munge the serial parameters
if "{serial}" = "int"
  set driver "Internal"
  set port 0
elseif "{serial}" = "dual0"
  set driver "sp_dual"
  set port 0
elseif "{serial}" = "dual1"
  set driver "sp_dual"
  set port 1
endif
if "{cable}" = "pc"
  set driver "{driver}PC"
endif

#--- Set up bits to be put into SLIPdial script
set local "{pop1}"
set loc4 "{local}" LEFT 4

#--- Restrict menu entries to 12 chars else menu click is ignored
set menulocal "{local}"
if "{local}" = "Wolverhampton"
  set menulocal "Wolverhmptn"
endif

#--- Make a list of local PoP plus some arbitrary others
if "{local}" = "London"
  set slipmenu """London:call Lond"" ""Leeds:call Leed"" ""Manchester:call Manc"" ""Newcastle:call Newc"" ""Nottingham:call Nott"" ""Preston:call Pres"" ""Sheffield:call Shef"" ""List:call List"""
elseif "{local}" = "Leeds"
  set slipmenu """Leeds:call Leed"" ""London:call Lond"" ""Manchester:call Manc"" ""Newcastle:call Newc"" ""Nottingham:call Nott"" ""Preston:call Pres"" ""Sheffield:call Shef"" ""List:call List"""
elseif "{local}" = "Manchester"
  set slipmenu """Manchester:call Manc"" ""London:call Lond"" ""Leeds:call Leed"" ""Newcastle:call Newc"" ""Nottingham:call Nott"" ""Preston:call Pres"" ""Sheffield:call Shef"" ""List:call List"""
elseif "{local}" = "Newcastle"
  set slipmenu """Newcastle:call Newc"" ""London:call Lond"" ""Leeds:call Leed"" ""Manchester:call Manc"" ""Nottingham:call Nott"" ""Preston:call Pres"" ""Sheffield:call Shef"" ""List:call List"""
elseif "{local}" = "Nottingham"
  set slipmenu """Nottingham:call Nott"" ""London:call Lond"" ""Leeds:call Leed"" ""Manchester:call Manc"" ""Newcastle:call Newc"" ""Preston:call Pres"" ""Sheffield:call Shef"" ""List:call List"""
elseif "{local}" = "Preston"
  set slipmenu """Preston:call Pres"" ""London:call Lond"" ""Leeds:call Leed"" ""Manchester:call Manc"" ""Newcastle:call Newc"" ""Nottingham:call Nott"" ""Sheffield:call Shef"" ""List:call List"""
elseif "{local}" = "Sheffield"
  set slipmenu """Sheffield:call Shef"" ""London:call Lond"" ""Leeds:call Leed"" ""Manchester:call Manc"" ""Newcastle:call Newc"" ""Nottingham:call Nott"" ""Preston:call Pres"" ""List:call List"""
else
  set slipmenu """{menulocal}:call {loc4}"" ""London:call Lond"" ""Leeds:call Leed"" ""Manchester:call Manc"" ""Newcastle:call Newc"" ""Nottingham:call Nott"" ""Preston:call Pres"" ""Sheffield:call Shef"" ""List:call List"""
endif

#--- See if the user wants to call Demon to get the IP address
if {getip}

#--- Demon want passwords to be between 5 to 8 characters long
  if LEN "{dempw}" < 5
    error Demon password must be 5 or more characters
    goto retry
  endif

  confirm ok About to ring Demon to set password and get IP address.  Check your modem is set up.
  if {ok} = 0
    goto retry
  endif

  substitution {{ }}
  translate <DemConfig$Dir>.Blanks.FirstDemon <DemConfig$Dir>.FirstDemon
  substitution { }
  cli Run <Internet$Dir>.!SLIPdial -file <DemConfig$Dir>.FirstDemon
#--- "I'll be back..." (restarted by the SLIPdial script)
else

#--- Check that the IP address is valid
  cli set DemConfig$IpAddr {ip_addr}
  cli BASIC -quit <DemConfig$Dir>.CheckIp
  if DemConfig$IpValid = 0
    error Invalid IP address {ip_addr}
    goto retry
  endif

#--- Now do the actual configuration
  set domain "demon.co.uk"
  set host "{node}.{domain}"
  set inetdir Internet$Dir

#--- Set up TCPIP.  Note TCPIP$Dir is !TCPIPUser, not !TCPIP.
  cli set temp <Internet$Dir>.!TCPIPUser
  cli set temp2 <temp>.Install.TCPIPUser
  cli  copy <temp2>.!Run   <temp>.!Run ~c~vf
  translate <temp2>.Config <temp>.Config
  translate <temp2>.Domain <temp>.Domain
  cli copy <DemConfig$Dir>.Blanks.AutoExec <temp>.AutoExec ~c~vf
  cli copy <DemConfig$Dir>.Blanks.DemGroup <temp>.NNTP.DemGroup ~c~vf

#--- Create the NewsDir and configure !NewsBase
#--- Use temp variables to stop command line getting too long
  cli set temp <Internet$Dir>.!NewsDir
  cli set temp2 <Internet$Dir>.!NewsBase
  cli cdir <temp>
  cli copy <temp2>.support.newsbase.newsdir <temp> ~c~vfr
  cli cdir <temp>.news
  cli cdir <temp>.config
  cli cdir <temp>.newsbase
  cli cdir <temp>.newsbase.config
  translate <DemConfig$Dir>.Blanks.!nbconfig <temp>.newsbase.config.!nbconfig
  cli cdir <temp>.newsbase.debug
  cli cdir <temp>.newsbase.scratch
  cli cdir <temp>.newsbase.spool
  cli cdir <temp>.newsbase.work

#--- Create user details
  cli cdir <temp>.UserHome
  cli set temp2 <temp>.UserHome.{userid}
  cli cdir <temp2>
  cli copy <DemConfig$Dir>.Blanks.forward <temp2>.forward ~c~vf
  cli copy <DemConfig$Dir>.Blanks.userinfo <temp2>.userinfo ~c~vf
  translate <DemConfig$Dir>.Blanks.RLN <temp2>.RLN ~c~vf
  cli copy <temp2>.RLN <temp2>.Signature ~c~vf

  cli set temp2 <temp>.UserHome.default
  cli cdir <temp2>
  cli copy <DemConfig$Dir>.Blanks.forward <temp2>.forward ~c~vf
  cli copy <DemConfig$Dir>.Blanks.userinfo <temp2>.userinfo ~c~vf

  cli set temp2 <temp>.UserHome.postmaster
  cli cdir <temp2>
  cli copy <DemConfig$Dir>.Blanks.forward <temp2>.forward ~c~vf
  cli copy <DemConfig$Dir>.Blanks.userinfo <temp2>.postinfo ~c~vf

  cli set temp2 <temp>.UserHome.root
  cli cdir <temp2>
  cli copy <DemConfig$Dir>.Blanks.forward <temp2>.forward ~c~vf
  cli copy <DemConfig$Dir>.Blanks.userinfo <temp2>.rootinfo ~c~vf

#--- Set up welcome news/mail for delivery
  cli set temp <Internet$Dir>.!NewsDir.newsbase.work
  cli set temp2 <Internet$Dir>.!NewsBase.support.newsbase.welcome
  cli copy <temp2>.new_mail <temp>.new_mail ~c~vf
  cli copy <temp2>.new_news <temp>.new_news ~c~vf

#--- Set up TTFN.  Use a BASIC program to create the binary config file
  cli set temp <DemConfig$Dir>.temp
  cli set temp2 <Internet$Dir>.!TTFN
  set dest "<Internet$Dir>.!TTFN.Resources.!Config"
  translate <DemConfig$Dir>.Blanks.TTFNconfig <temp>
  cli basic -quit <temp>
  cli remove <temp>

#--- Set up SLIPdial
  cli set temp <Internet$Dir>.!SLIPdial.Scripts
  translate <DemConfig$Dir>.Blanks.SLIPconfig <temp>.demonconfg
#--- SLIPdial uses "{" and "}" so need different substitution delimiters
  substitution {{ }}
  translate <DemConfig$Dir>.Blanks.SLIPDemon <temp>.Demon
  substitution { }

#--- Ensure all apps booted (may not be after unarchiving)
  cli run <Internet$Dir>.!TCPIP.!Boot
  cli run <Internet$Dir>.!TCPIPUser.!Boot
  cli run <Internet$Dir>.!NewsBase.!Boot
  cli run <Internet$Dir>.!NewsDir.!Boot
  cli run <Internet$Dir>.!TTFN.!Boot
  cli run <Internet$Dir>.!SLIPdial.!Boot
  
  confirm ok Configuration completed
  if {ok} = 0
    goto retry
  endif

endif
00000000  23 20 43 6f 6e 66 69 67  75 72 61 74 69 6f 6e 20  |# Configuration |
00000010  73 63 72 69 70 74 20 66  6f 72 20 44 65 6d 6f 6e  |script for Demon|
00000020  20 73 65 74 75 70 20 70  72 6f 67 72 61 6d 2e 0a  | setup program..|
00000030  23 20 32 32 20 44 65 63  20 39 34 20 20 43 6f 6c  |# 22 Dec 94  Col|
00000040  69 6e 20 48 6f 67 62 65  6e 20 3a 20 46 69 72 73  |in Hogben : Firs|
00000050  74 20 66 75 6c 6c 20 76  65 72 73 69 6f 6e 2e 0a  |t full version..|
00000060  23 20 31 35 20 4a 61 6e  20 39 35 20 20 43 6f 6c  |# 15 Jan 95  Col|
00000070  69 6e 20 48 6f 67 62 65  6e 20 3a 20 41 64 64 65  |in Hogben : Adde|
00000080  64 20 66 65 74 63 68 69  6e 67 20 6f 66 20 49 50  |d fetching of IP|
00000090  20 61 64 64 72 65 73 73  20 76 69 61 20 53 4c 49  | address via SLI|
000000a0  50 64 69 61 6c 0a 23 20  31 38 20 4a 61 6e 20 39  |Pdial.# 18 Jan 9|
000000b0  35 20 20 43 6f 6c 69 6e  20 48 6f 67 62 65 6e 20  |5  Colin Hogben |
000000c0  3a 20 44 6f 6e 27 74 20  77 69 70 65 20 21 4e 65  |: Don't wipe !Ne|
000000d0  77 73 44 69 72 0a 23 20  31 39 20 4a 61 6e 20 39  |wsDir.# 19 Jan 9|
000000e0  35 20 20 43 6f 6c 69 6e  20 48 6f 67 62 65 6e 20  |5  Colin Hogben |
000000f0  3a 20 41 64 64 65 64 20  73 65 6c 65 63 74 69 6f  |: Added selectio|
00000100  6e 20 6f 66 20 50 6f 50  0a 23 20 32 30 20 4a 61  |n of PoP.# 20 Ja|
00000110  6e 20 39 35 20 20 43 6f  6c 69 6e 20 48 6f 67 62  |n 95  Colin Hogb|
00000120  65 6e 20 3a 20 4d 6f 64  69 66 69 65 64 20 68 61  |en : Modified ha|
00000130  6e 64 6c 69 6e 67 20 6f  66 20 70 72 65 66 65 72  |ndling of prefer|
00000140  72 65 64 20 50 6f 50 0a  0a 23 2d 2d 2d 20 46 65  |red PoP..#--- Fe|
00000150  74 63 68 20 69 6e 69 74  69 61 6c 20 64 65 66 61  |tch initial defa|
00000160  75 6c 74 73 20 66 6f 72  20 75 73 65 72 2d 73 65  |ults for user-se|
00000170  74 74 61 62 6c 65 20 66  69 65 6c 64 73 0a 63 6c  |ttable fields.cl|
00000180  69 20 4f 62 65 79 20 3c  44 65 6d 43 6f 6e 66 69  |i Obey <DemConfi|
00000190  67 24 44 69 72 3e 2e 43  68 6f 69 63 65 73 0a 73  |g$Dir>.Choices.s|
000001a0  65 74 20 6d 6f 64 65 6d  20 44 65 6d 43 6f 6e 66  |et modem DemConf|
000001b0  69 67 24 4d 6f 64 65 6d  0a 73 65 74 20 73 65 72  |ig$Modem.set ser|
000001c0  69 61 6c 20 44 65 6d 43  6f 6e 66 69 67 24 53 65  |ial DemConfig$Se|
000001d0  72 69 61 6c 0a 73 65 74  20 63 61 62 6c 65 20 44  |rial.set cable D|
000001e0  65 6d 43 6f 6e 66 69 67  24 43 61 62 6c 65 0a 73  |emConfig$Cable.s|
000001f0  65 74 20 73 70 65 65 64  20 44 65 6d 43 6f 6e 66  |et speed DemConf|
00000200  69 67 24 53 70 65 65 64  0a 73 65 74 20 68 67 20  |ig$Speed.set hg |
00000210  44 65 6d 43 6f 6e 66 69  67 24 48 67 0a 73 65 74  |DemConfig$Hg.set|
00000220  20 68 67 70 69 6e 20 44  65 6d 43 6f 6e 66 69 67  | hgpin DemConfig|
00000230  24 48 67 50 69 6e 0a 73  65 74 20 70 6f 70 31 20  |$HgPin.set pop1 |
00000240  44 65 6d 43 6f 6e 66 69  67 24 50 6f 50 0a 0a 73  |DemConfig$PoP..s|
00000250  65 74 20 75 73 65 72 69  64 20 44 65 6d 43 6f 6e  |et userid DemCon|
00000260  66 69 67 24 55 73 65 72  49 64 0a 73 65 74 20 72  |fig$UserId.set r|
00000270  65 61 6c 6e 61 6d 65 20  44 65 6d 43 6f 6e 66 69  |ealname DemConfi|
00000280  67 24 52 65 61 6c 4e 61  6d 65 0a 73 65 74 20 6f  |g$RealName.set o|
00000290  72 67 20 44 65 6d 43 6f  6e 66 69 67 24 4f 72 67  |rg DemConfig$Org|
000002a0  0a 0a 73 65 74 20 6e 6f  64 65 20 44 65 6d 43 6f  |..set node DemCo|
000002b0  6e 66 69 67 24 4e 6f 64  65 0a 73 65 74 20 64 65  |nfig$Node.set de|
000002c0  6d 70 77 20 44 65 6d 43  6f 6e 66 69 67 24 44 65  |mpw DemConfig$De|
000002d0  6d 50 77 0a 0a 23 2d 2d  2d 20 54 68 65 20 49 50  |mPw..#--- The IP|
000002e0  20 61 64 64 72 65 73 73  20 63 61 6e 20 62 65 20  | address can be |
000002f0  6d 6f 64 69 66 69 65 64  20 62 79 20 74 68 65 20  |modified by the |
00000300  53 4c 49 50 64 69 61 6c  20 73 63 72 69 70 74 0a  |SLIPdial script.|
00000310  63 6c 69 20 4f 62 65 79  20 3c 44 65 6d 43 6f 6e  |cli Obey <DemCon|
00000320  66 69 67 24 44 69 72 3e  2e 49 70 41 64 64 72 0a  |fig$Dir>.IpAddr.|
00000330  73 65 74 20 69 70 5f 61  64 64 72 20 44 65 6d 43  |set ip_addr DemC|
00000340  6f 6e 66 69 67 24 49 70  41 64 64 72 0a 63 6c 69  |onfig$IpAddr.cli|
00000350  20 42 41 53 49 43 20 2d  71 75 69 74 20 3c 44 65  | BASIC -quit <De|
00000360  6d 43 6f 6e 66 69 67 24  44 69 72 3e 2e 43 68 65  |mConfig$Dir>.Che|
00000370  63 6b 49 70 0a 73 65 74  20 67 65 74 69 70 20 44  |ckIp.set getip D|
00000380  65 6d 43 6f 6e 66 69 67  24 49 70 56 61 6c 69 64  |emConfig$IpValid|
00000390  20 3d 20 30 0a 0a 23 2d  2d 2d 20 43 6f 6d 65 20  | = 0..#--- Come |
000003a0  62 61 63 6b 20 68 65 72  65 20 69 66 20 65 72 72  |back here if err|
000003b0  6f 72 73 20 69 6e 20 75  73 65 72 20 64 61 74 61  |ors in user data|
000003c0  20 64 65 74 65 63 74 65  64 0a 6c 61 62 65 6c 20  | detected.label |
000003d0  72 65 74 72 79 0a 0a 23  2d 2d 2d 20 42 65 67 69  |retry..#--- Begi|
000003e0  6e 20 74 68 65 20 77 69  6e 64 6f 77 20 64 65 66  |n the window def|
000003f0  69 6e 69 74 69 6f 6e 0a  77 69 6e 64 6f 77 0a 0a  |inition.window..|
00000400  23 20 47 72 6f 75 70 20  73 6f 6d 65 20 72 65 6c  |# Group some rel|
00000410  61 74 65 64 20 6f 70 74  69 6f 6e 73 20 74 6f 67  |ated options tog|
00000420  65 74 68 65 72 20 69 6e  74 6f 20 61 20 62 6f 78  |ether into a box|
00000430  2e 2e 2e 0a 20 20 67 72  6f 75 70 20 22 4d 6f 64  |....  group "Mod|
00000440  65 6d 20 26 20 73 65 72  69 61 6c 20 69 6e 74 65  |em & serial inte|
00000450  72 66 61 63 65 22 0a 20  20 20 20 6d 65 6e 75 63  |rface".    menuc|
00000460  68 6f 69 63 65 20 6d 6f  64 65 6d 20 22 4d 6f 64  |hoice modem "Mod|
00000470  65 6d 20 74 79 70 65 22  20 5c 0a 20 22 55 53 52  |em type" \. "USR|
00000480  20 53 70 6f 72 74 73 74  65 72 3d 53 70 6f 72 74  | Sportster=Sport|
00000490  73 74 65 72 22 20 5c 0a  20 22 48 61 79 65 73 22  |ster" \. "Hayes"|
000004a0  20 5c 0a 20 22 4f 74 68  65 72 3d 75 6e 6b 6e 6f  | \. "Other=unkno|
000004b0  77 6e 22 0a 23 20 4e 2e  42 2e 20 74 68 65 20 21  |wn".# N.B. the !|
000004c0  53 4c 49 50 64 69 61 6c  2e 44 72 69 76 65 72 73  |SLIPdial.Drivers|
000004d0  20 64 69 72 65 63 74 6f  72 79 20 73 65 65 6d 73  | directory seems|
000004e0  20 72 61 74 68 65 72 20  63 6f 6e 66 75 73 65 64  | rather confused|
000004f0  2e 0a 23 20 20 53 70 6f  72 74 73 74 65 72 20 6c  |..#  Sportster l|
00000500  6f 6f 6b 73 20 61 73 20  69 66 20 65 76 65 72 79  |ooks as if every|
00000510  74 68 69 6e 67 20 69 73  20 63 6f 6d 6d 65 6e 74  |thing is comment|
00000520  65 64 20 6f 75 74 2e 0a  23 20 20 55 53 52 20 20  |ed out..#  USR  |
00000530  20 20 20 20 20 6c 6f 6f  6b 73 20 6c 69 6b 65 20  |     looks like |
00000540  61 20 63 6f 72 72 65 63  74 20 53 70 6f 72 74 73  |a correct Sports|
00000550  74 65 72 20 73 65 74 2d  75 70 0a 23 20 20 55 53  |ter set-up.#  US|
00000560  52 32 20 20 20 20 20 20  6c 6f 6f 6b 73 20 6c 69  |R2      looks li|
00000570  6b 65 20 64 65 66 61 75  6c 74 20 73 65 74 74 69  |ke default setti|
00000580  6e 67 73 20 28 6e 6f 20  69 6e 69 74 20 73 65 74  |ngs (no init set|
00000590  74 69 6e 67 73 29 2e 0a  23 20 2e 2e 2e 61 6e 64  |tings)..# ...and|
000005a0  20 6e 6f 74 20 61 20 63  6f 6d 6d 65 6e 74 20 74  | not a comment t|
000005b0  6f 20 62 65 20 73 65 65  6e 2e 20 20 54 68 65 20  |o be seen.  The |
000005c0  55 53 52 20 73 65 74 74  69 6e 67 73 20 77 6f 72  |USR settings wor|
000005d0  6b 20 66 6f 72 20 6d 79  20 53 70 6f 72 74 73 74  |k for my Sportst|
000005e0  65 72 2c 0a 23 20 62 75  74 20 6f 74 68 65 72 77  |er,.# but otherw|
000005f0  69 73 65 20 79 6f 75 72  20 67 75 65 73 73 20 69  |ise your guess i|
00000600  73 20 61 73 20 67 6f 6f  64 20 61 73 20 6d 69 6e  |s as good as min|
00000610  65 2e 0a 0a 20 20 20 20  6d 65 6e 75 63 68 6f 69  |e...    menuchoi|
00000620  63 65 20 73 65 72 69 61  6c 20 22 53 65 72 69 61  |ce serial "Seria|
00000630  6c 20 70 6f 72 74 22 20  5c 0a 20 49 6e 74 65 72  |l port" \. Inter|
00000640  6e 61 6c 3d 69 6e 74 20  5c 0a 20 22 44 75 61 6c  |nal=int \. "Dual|
00000650  20 53 65 72 69 61 6c 20  63 61 72 64 20 28 70 6f  | Serial card (po|
00000660  72 74 20 30 29 3d 64 75  61 6c 30 22 20 5c 0a 20  |rt 0)=dual0" \. |
00000670  22 44 75 61 6c 20 53 65  72 69 61 6c 20 63 61 72  |"Dual Serial car|
00000680  64 20 28 70 6f 72 74 20  31 29 3d 64 75 61 6c 31  |d (port 1)=dual1|
00000690  22 0a 20 20 20 20 6d 65  6e 75 63 68 6f 69 63 65  |".    menuchoice|
000006a0  20 63 61 62 6c 65 20 22  43 61 62 6c 65 20 74 79  | cable "Cable ty|
000006b0  70 65 22 20 5c 0a 20 22  41 72 63 3d 61 72 63 22  |pe" \. "Arc=arc"|
000006c0  20 5c 0a 20 22 50 43 3d  70 63 22 0a 20 20 20 20  | \. "PC=pc".    |
000006d0  73 74 72 69 6e 67 20 73  70 65 65 64 09 22 53 65  |string speed."Se|
000006e0  72 69 61 6c 20 73 70 65  65 64 22 09 31 30 20 20  |rial speed".10  |
000006f0  20 30 2d 39 0a 0a 20 20  20 20 66 6c 61 67 20 68  | 0-9..    flag h|
00000700  67 20 22 4d 65 72 63 75  72 79 20 61 76 61 69 6c  |g "Mercury avail|
00000710  61 62 6c 65 22 20 22 23  22 20 22 22 0a 20 20 20  |able" "#" "".   |
00000720  20 73 74 72 69 6e 67 20  68 67 70 69 6e 20 22 4d  | string hgpin "M|
00000730  65 72 63 75 72 79 20 50  49 4e 22 09 09 32 30 20  |ercury PIN"..20 |
00000740  20 20 30 2d 39 2c 0a 0a  23 2d 2d 2d 20 41 6c 74  |  0-9,..#--- Alt|
00000750  65 72 6e 61 74 69 76 65  20 73 70 61 63 65 6c 65  |ernative spacele|
00000760  73 73 20 76 65 72 73 69  6f 6e 73 20 6e 65 65 64  |ss versions need|
00000770  65 64 20 74 6f 20 61 67  72 65 65 20 77 69 74 68  |ed to agree with|
00000780  20 53 4c 49 50 64 69 61  6c 20 73 63 72 69 70 74  | SLIPdial script|
00000790  0a 20 20 20 20 6d 65 6e  75 63 68 6f 69 63 65 20  |.    menuchoice |
000007a0  70 6f 70 31 20 22 4d 61  69 6e 20 50 6f 50 22 20  |pop1 "Main PoP" |
000007b0  5c 0a 20 22 42 69 72 6d  69 6e 67 68 61 6d 22 20  |\. "Birmingham" |
000007c0  22 42 72 61 64 66 6f 72  64 22 20 22 42 72 69 73  |"Bradford" "Bris|
000007d0  74 6f 6c 22 20 5c 0a 20  22 43 61 6d 62 72 69 64  |tol" \. "Cambrid|
000007e0  67 65 22 20 22 43 61 72  64 69 66 66 22 20 22 43  |ge" "Cardiff" "C|
000007f0  6f 76 65 6e 74 72 79 22  20 5c 0a 20 22 45 64 69  |oventry" \. "Edi|
00000800  6e 62 75 72 67 68 22 20  22 47 6c 6f 75 63 65 73  |nburgh" "Glouces|
00000810  74 65 72 22 20 22 48 75  6c 6c 22 20 5c 0a 20 22  |ter" "Hull" \. "|
00000820  49 73 6c 65 20 6f 66 20  57 69 67 68 74 3d 49 73  |Isle of Wight=Is|
00000830  6c 65 4f 66 57 69 67 68  74 22 20 22 4c 65 65 64  |leOfWight" "Leed|
00000840  73 22 20 22 4c 65 69 63  65 73 74 65 72 22 20 5c  |s" "Leicester" \|
00000850  0a 20 22 4c 69 76 65 72  70 6f 6f 6c 22 20 22 4c  |. "Liverpool" "L|
00000860  6f 6e 64 6f 6e 22 20 22  4c 75 74 6f 6e 22 20 5c  |ondon" "Luton" \|
00000870  0a 20 22 4d 61 6e 63 68  65 73 74 65 72 22 20 22  |. "Manchester" "|
00000880  4e 65 77 63 61 73 74 6c  65 22 20 22 4e 6f 74 74  |Newcastle" "Nott|
00000890  69 6e 67 68 61 6d 22 20  5c 0a 20 22 50 72 65 73  |ingham" \. "Pres|
000008a0  74 6f 6e 22 20 22 52 65  61 64 69 6e 67 22 20 22  |ton" "Reading" "|
000008b0  53 61 66 66 72 6f 6e 20  57 61 6c 64 65 6e 3d 53  |Saffron Walden=S|
000008c0  61 66 66 72 6f 6e 22 20  5c 0a 20 22 53 68 65 66  |affron" \. "Shef|
000008d0  66 69 65 6c 64 22 20 22  57 6f 6c 76 65 72 68 61  |field" "Wolverha|
000008e0  6d 70 74 6f 6e 22 0a 20  20 65 6e 64 67 72 6f 75  |mpton".  endgrou|
000008f0  70 0a 0a 20 20 67 72 6f  75 70 20 22 44 65 6d 6f  |p..  group "Demo|
00000900  6e 20 61 63 63 6f 75 6e  74 22 0a 23 20 20 20 20  |n account".#    |
00000910  20 20 20 20 76 61 72 69  61 62 6c 65 20 6e 61 6d  |    variable nam|
00000920  65 20 20 6c 61 62 65 6c  20 20 20 20 20 20 20 20  |e  label        |
00000930  20 20 20 6c 65 6e 20 20  76 61 6c 69 64 61 74 69  |   len  validati|
00000940  6f 6e 0a 20 20 20 20 73  74 72 69 6e 67 20 6e 6f  |on.    string no|
00000950  64 65 09 09 22 4e 6f 64  65 20 6e 61 6d 65 22 09  |de.."Node name".|
00000960  38 20 20 20 41 2d 5a 61  2d 7a 30 2d 39 0a 20 20  |8   A-Za-z0-9.  |
00000970  20 20 73 74 72 69 6e 67  20 64 65 6d 70 77 09 50  |  string dempw.P|
00000980  61 73 73 77 6f 72 64 09  38 0a 20 20 20 20 73 74  |assword.8.    st|
00000990  72 69 6e 67 20 69 70 5f  61 64 64 72 09 22 49 6e  |ring ip_addr."In|
000009a0  74 65 72 6e 65 74 20 61  64 72 73 22 09 31 35 20  |ternet adrs".15 |
000009b0  30 2d 39 2e 0a 20 20 20  20 66 6c 61 67 20 67 65  |0-9..    flag ge|
000009c0  74 69 70 20 22 43 61 6c  6c 20 44 65 6d 6f 6e 20  |tip "Call Demon |
000009d0  6e 6f 77 20 74 6f 20 67  65 74 20 49 50 20 61 64  |now to get IP ad|
000009e0  64 72 65 73 73 22 20 30  20 2d 31 0a 20 20 65 6e  |dress" 0 -1.  en|
000009f0  64 67 72 6f 75 70 0a 0a  20 20 67 72 6f 75 70 20  |dgroup..  group |
00000a00  22 55 73 65 72 20 64 65  74 61 69 6c 73 22 0a 20  |"User details". |
00000a10  20 20 20 73 74 72 69 6e  67 20 75 73 65 72 69 64  |   string userid|
00000a20  09 55 73 65 72 69 64 09  09 38 0a 20 20 20 20 73  |.Userid..8.    s|
00000a30  74 72 69 6e 67 20 72 65  61 6c 6e 61 6d 65 09 4e  |tring realname.N|
00000a40  61 6d 65 09 09 34 30 0a  20 20 20 20 73 74 72 69  |ame..40.    stri|
00000a50  6e 67 20 6f 72 67 09 09  4f 72 67 61 6e 69 73 61  |ng org..Organisa|
00000a60  74 69 6f 6e 09 34 30 0a  20 20 65 6e 64 67 72 6f  |tion.40.  endgro|
00000a70  75 70 0a 0a 23 2d 2d 2d  20 4c 65 74 20 74 68 65  |up..#--- Let the|
00000a80  20 75 73 65 72 20 66 69  6c 6c 20 69 6e 20 74 68  | user fill in th|
00000a90  65 20 64 65 74 61 69 6c  73 0a 65 6e 64 77 69 6e  |e details.endwin|
00000aa0  64 6f 77 0a 0a 23 2d 2d  2d 20 53 61 76 65 20 74  |dow..#--- Save t|
00000ab0  68 65 20 63 68 6f 69 63  65 73 20 6d 61 64 65 20  |he choices made |
00000ac0  73 6f 20 66 61 72 2e 20  20 53 70 65 63 69 61 6c  |so far.  Special|
00000ad0  20 63 61 73 65 20 66 6f  72 20 6e 75 6c 6c 20 73  | case for null s|
00000ae0  74 72 69 6e 67 73 2e 0a  73 65 74 20 68 67 71 20  |trings..set hgq |
00000af0  22 7b 68 67 7d 22 0a 69  66 20 22 7b 68 67 71 7d  |"{hg}".if "{hgq}|
00000b00  22 20 3d 20 22 22 0a 20  20 73 65 74 20 68 67 71  |" = "".  set hgq|
00000b10  20 22 22 22 22 22 22 0a  65 6e 64 69 66 0a 73 65  | """""".endif.se|
00000b20  74 20 6f 72 67 71 20 22  7b 6f 72 67 7d 22 0a 69  |t orgq "{org}".i|
00000b30  66 20 22 7b 6f 72 67 71  7d 22 20 3d 20 22 22 0a  |f "{orgq}" = "".|
00000b40  20 20 73 65 74 20 6f 72  67 71 20 22 22 22 22 22  |  set orgq """""|
00000b50  22 0a 65 6e 64 69 66 0a  74 72 61 6e 73 6c 61 74  |".endif.translat|
00000b60  65 20 3c 44 65 6d 43 6f  6e 66 69 67 24 44 69 72  |e <DemConfig$Dir|
00000b70  3e 2e 42 6c 61 6e 6b 73  2e 43 68 6f 69 63 65 73  |>.Blanks.Choices|
00000b80  20 3c 44 65 6d 43 6f 6e  66 69 67 24 44 69 72 3e  | <DemConfig$Dir>|
00000b90  2e 43 68 6f 69 63 65 73  0a 74 72 61 6e 73 6c 61  |.Choices.transla|
00000ba0  74 65 20 3c 44 65 6d 43  6f 6e 66 69 67 24 44 69  |te <DemConfig$Di|
00000bb0  72 3e 2e 42 6c 61 6e 6b  73 2e 49 70 41 64 64 72  |r>.Blanks.IpAddr|
00000bc0  20 3c 44 65 6d 43 6f 6e  66 69 67 24 44 69 72 3e  | <DemConfig$Dir>|
00000bd0  2e 49 70 41 64 64 72 0a  0a 23 2d 2d 2d 20 4d 75  |.IpAddr..#--- Mu|
00000be0  6e 67 65 20 74 68 65 20  73 65 72 69 61 6c 20 70  |nge the serial p|
00000bf0  61 72 61 6d 65 74 65 72  73 0a 69 66 20 22 7b 73  |arameters.if "{s|
00000c00  65 72 69 61 6c 7d 22 20  3d 20 22 69 6e 74 22 0a  |erial}" = "int".|
00000c10  20 20 73 65 74 20 64 72  69 76 65 72 20 22 49 6e  |  set driver "In|
00000c20  74 65 72 6e 61 6c 22 0a  20 20 73 65 74 20 70 6f  |ternal".  set po|
00000c30  72 74 20 30 0a 65 6c 73  65 69 66 20 22 7b 73 65  |rt 0.elseif "{se|
00000c40  72 69 61 6c 7d 22 20 3d  20 22 64 75 61 6c 30 22  |rial}" = "dual0"|
00000c50  0a 20 20 73 65 74 20 64  72 69 76 65 72 20 22 73  |.  set driver "s|
00000c60  70 5f 64 75 61 6c 22 0a  20 20 73 65 74 20 70 6f  |p_dual".  set po|
00000c70  72 74 20 30 0a 65 6c 73  65 69 66 20 22 7b 73 65  |rt 0.elseif "{se|
00000c80  72 69 61 6c 7d 22 20 3d  20 22 64 75 61 6c 31 22  |rial}" = "dual1"|
00000c90  0a 20 20 73 65 74 20 64  72 69 76 65 72 20 22 73  |.  set driver "s|
00000ca0  70 5f 64 75 61 6c 22 0a  20 20 73 65 74 20 70 6f  |p_dual".  set po|
00000cb0  72 74 20 31 0a 65 6e 64  69 66 0a 69 66 20 22 7b  |rt 1.endif.if "{|
00000cc0  63 61 62 6c 65 7d 22 20  3d 20 22 70 63 22 0a 20  |cable}" = "pc". |
00000cd0  20 73 65 74 20 64 72 69  76 65 72 20 22 7b 64 72  | set driver "{dr|
00000ce0  69 76 65 72 7d 50 43 22  0a 65 6e 64 69 66 0a 0a  |iver}PC".endif..|
00000cf0  23 2d 2d 2d 20 53 65 74  20 75 70 20 62 69 74 73  |#--- Set up bits|
00000d00  20 74 6f 20 62 65 20 70  75 74 20 69 6e 74 6f 20  | to be put into |
00000d10  53 4c 49 50 64 69 61 6c  20 73 63 72 69 70 74 0a  |SLIPdial script.|
00000d20  73 65 74 20 6c 6f 63 61  6c 20 22 7b 70 6f 70 31  |set local "{pop1|
00000d30  7d 22 0a 73 65 74 20 6c  6f 63 34 20 22 7b 6c 6f  |}".set loc4 "{lo|
00000d40  63 61 6c 7d 22 20 4c 45  46 54 20 34 0a 0a 23 2d  |cal}" LEFT 4..#-|
00000d50  2d 2d 20 52 65 73 74 72  69 63 74 20 6d 65 6e 75  |-- Restrict menu|
00000d60  20 65 6e 74 72 69 65 73  20 74 6f 20 31 32 20 63  | entries to 12 c|
00000d70  68 61 72 73 20 65 6c 73  65 20 6d 65 6e 75 20 63  |hars else menu c|
00000d80  6c 69 63 6b 20 69 73 20  69 67 6e 6f 72 65 64 0a  |lick is ignored.|
00000d90  73 65 74 20 6d 65 6e 75  6c 6f 63 61 6c 20 22 7b  |set menulocal "{|
00000da0  6c 6f 63 61 6c 7d 22 0a  69 66 20 22 7b 6c 6f 63  |local}".if "{loc|
00000db0  61 6c 7d 22 20 3d 20 22  57 6f 6c 76 65 72 68 61  |al}" = "Wolverha|
00000dc0  6d 70 74 6f 6e 22 0a 20  20 73 65 74 20 6d 65 6e  |mpton".  set men|
00000dd0  75 6c 6f 63 61 6c 20 22  57 6f 6c 76 65 72 68 6d  |ulocal "Wolverhm|
00000de0  70 74 6e 22 0a 65 6e 64  69 66 0a 0a 23 2d 2d 2d  |ptn".endif..#---|
00000df0  20 4d 61 6b 65 20 61 20  6c 69 73 74 20 6f 66 20  | Make a list of |
00000e00  6c 6f 63 61 6c 20 50 6f  50 20 70 6c 75 73 20 73  |local PoP plus s|
00000e10  6f 6d 65 20 61 72 62 69  74 72 61 72 79 20 6f 74  |ome arbitrary ot|
00000e20  68 65 72 73 0a 69 66 20  22 7b 6c 6f 63 61 6c 7d  |hers.if "{local}|
00000e30  22 20 3d 20 22 4c 6f 6e  64 6f 6e 22 0a 20 20 73  |" = "London".  s|
00000e40  65 74 20 73 6c 69 70 6d  65 6e 75 20 22 22 22 4c  |et slipmenu """L|
00000e50  6f 6e 64 6f 6e 3a 63 61  6c 6c 20 4c 6f 6e 64 22  |ondon:call Lond"|
00000e60  22 20 22 22 4c 65 65 64  73 3a 63 61 6c 6c 20 4c  |" ""Leeds:call L|
00000e70  65 65 64 22 22 20 22 22  4d 61 6e 63 68 65 73 74  |eed"" ""Manchest|
00000e80  65 72 3a 63 61 6c 6c 20  4d 61 6e 63 22 22 20 22  |er:call Manc"" "|
00000e90  22 4e 65 77 63 61 73 74  6c 65 3a 63 61 6c 6c 20  |"Newcastle:call |
00000ea0  4e 65 77 63 22 22 20 22  22 4e 6f 74 74 69 6e 67  |Newc"" ""Notting|
00000eb0  68 61 6d 3a 63 61 6c 6c  20 4e 6f 74 74 22 22 20  |ham:call Nott"" |
00000ec0  22 22 50 72 65 73 74 6f  6e 3a 63 61 6c 6c 20 50  |""Preston:call P|
00000ed0  72 65 73 22 22 20 22 22  53 68 65 66 66 69 65 6c  |res"" ""Sheffiel|
00000ee0  64 3a 63 61 6c 6c 20 53  68 65 66 22 22 20 22 22  |d:call Shef"" ""|
00000ef0  4c 69 73 74 3a 63 61 6c  6c 20 4c 69 73 74 22 22  |List:call List""|
00000f00  22 0a 65 6c 73 65 69 66  20 22 7b 6c 6f 63 61 6c  |".elseif "{local|
00000f10  7d 22 20 3d 20 22 4c 65  65 64 73 22 0a 20 20 73  |}" = "Leeds".  s|
00000f20  65 74 20 73 6c 69 70 6d  65 6e 75 20 22 22 22 4c  |et slipmenu """L|
00000f30  65 65 64 73 3a 63 61 6c  6c 20 4c 65 65 64 22 22  |eeds:call Leed""|
00000f40  20 22 22 4c 6f 6e 64 6f  6e 3a 63 61 6c 6c 20 4c  | ""London:call L|
00000f50  6f 6e 64 22 22 20 22 22  4d 61 6e 63 68 65 73 74  |ond"" ""Manchest|
00000f60  65 72 3a 63 61 6c 6c 20  4d 61 6e 63 22 22 20 22  |er:call Manc"" "|
00000f70  22 4e 65 77 63 61 73 74  6c 65 3a 63 61 6c 6c 20  |"Newcastle:call |
00000f80  4e 65 77 63 22 22 20 22  22 4e 6f 74 74 69 6e 67  |Newc"" ""Notting|
00000f90  68 61 6d 3a 63 61 6c 6c  20 4e 6f 74 74 22 22 20  |ham:call Nott"" |
00000fa0  22 22 50 72 65 73 74 6f  6e 3a 63 61 6c 6c 20 50  |""Preston:call P|
00000fb0  72 65 73 22 22 20 22 22  53 68 65 66 66 69 65 6c  |res"" ""Sheffiel|
00000fc0  64 3a 63 61 6c 6c 20 53  68 65 66 22 22 20 22 22  |d:call Shef"" ""|
00000fd0  4c 69 73 74 3a 63 61 6c  6c 20 4c 69 73 74 22 22  |List:call List""|
00000fe0  22 0a 65 6c 73 65 69 66  20 22 7b 6c 6f 63 61 6c  |".elseif "{local|
00000ff0  7d 22 20 3d 20 22 4d 61  6e 63 68 65 73 74 65 72  |}" = "Manchester|
00001000  22 0a 20 20 73 65 74 20  73 6c 69 70 6d 65 6e 75  |".  set slipmenu|
00001010  20 22 22 22 4d 61 6e 63  68 65 73 74 65 72 3a 63  | """Manchester:c|
00001020  61 6c 6c 20 4d 61 6e 63  22 22 20 22 22 4c 6f 6e  |all Manc"" ""Lon|
00001030  64 6f 6e 3a 63 61 6c 6c  20 4c 6f 6e 64 22 22 20  |don:call Lond"" |
00001040  22 22 4c 65 65 64 73 3a  63 61 6c 6c 20 4c 65 65  |""Leeds:call Lee|
00001050  64 22 22 20 22 22 4e 65  77 63 61 73 74 6c 65 3a  |d"" ""Newcastle:|
00001060  63 61 6c 6c 20 4e 65 77  63 22 22 20 22 22 4e 6f  |call Newc"" ""No|
00001070  74 74 69 6e 67 68 61 6d  3a 63 61 6c 6c 20 4e 6f  |ttingham:call No|
00001080  74 74 22 22 20 22 22 50  72 65 73 74 6f 6e 3a 63  |tt"" ""Preston:c|
00001090  61 6c 6c 20 50 72 65 73  22 22 20 22 22 53 68 65  |all Pres"" ""She|
000010a0  66 66 69 65 6c 64 3a 63  61 6c 6c 20 53 68 65 66  |ffield:call Shef|
000010b0  22 22 20 22 22 4c 69 73  74 3a 63 61 6c 6c 20 4c  |"" ""List:call L|
000010c0  69 73 74 22 22 22 0a 65  6c 73 65 69 66 20 22 7b  |ist""".elseif "{|
000010d0  6c 6f 63 61 6c 7d 22 20  3d 20 22 4e 65 77 63 61  |local}" = "Newca|
000010e0  73 74 6c 65 22 0a 20 20  73 65 74 20 73 6c 69 70  |stle".  set slip|
000010f0  6d 65 6e 75 20 22 22 22  4e 65 77 63 61 73 74 6c  |menu """Newcastl|
00001100  65 3a 63 61 6c 6c 20 4e  65 77 63 22 22 20 22 22  |e:call Newc"" ""|
00001110  4c 6f 6e 64 6f 6e 3a 63  61 6c 6c 20 4c 6f 6e 64  |London:call Lond|
00001120  22 22 20 22 22 4c 65 65  64 73 3a 63 61 6c 6c 20  |"" ""Leeds:call |
00001130  4c 65 65 64 22 22 20 22  22 4d 61 6e 63 68 65 73  |Leed"" ""Manches|
00001140  74 65 72 3a 63 61 6c 6c  20 4d 61 6e 63 22 22 20  |ter:call Manc"" |
00001150  22 22 4e 6f 74 74 69 6e  67 68 61 6d 3a 63 61 6c  |""Nottingham:cal|
00001160  6c 20 4e 6f 74 74 22 22  20 22 22 50 72 65 73 74  |l Nott"" ""Prest|
00001170  6f 6e 3a 63 61 6c 6c 20  50 72 65 73 22 22 20 22  |on:call Pres"" "|
00001180  22 53 68 65 66 66 69 65  6c 64 3a 63 61 6c 6c 20  |"Sheffield:call |
00001190  53 68 65 66 22 22 20 22  22 4c 69 73 74 3a 63 61  |Shef"" ""List:ca|
000011a0  6c 6c 20 4c 69 73 74 22  22 22 0a 65 6c 73 65 69  |ll List""".elsei|
000011b0  66 20 22 7b 6c 6f 63 61  6c 7d 22 20 3d 20 22 4e  |f "{local}" = "N|
000011c0  6f 74 74 69 6e 67 68 61  6d 22 0a 20 20 73 65 74  |ottingham".  set|
000011d0  20 73 6c 69 70 6d 65 6e  75 20 22 22 22 4e 6f 74  | slipmenu """Not|
000011e0  74 69 6e 67 68 61 6d 3a  63 61 6c 6c 20 4e 6f 74  |tingham:call Not|
000011f0  74 22 22 20 22 22 4c 6f  6e 64 6f 6e 3a 63 61 6c  |t"" ""London:cal|
00001200  6c 20 4c 6f 6e 64 22 22  20 22 22 4c 65 65 64 73  |l Lond"" ""Leeds|
00001210  3a 63 61 6c 6c 20 4c 65  65 64 22 22 20 22 22 4d  |:call Leed"" ""M|
00001220  61 6e 63 68 65 73 74 65  72 3a 63 61 6c 6c 20 4d  |anchester:call M|
00001230  61 6e 63 22 22 20 22 22  4e 65 77 63 61 73 74 6c  |anc"" ""Newcastl|
00001240  65 3a 63 61 6c 6c 20 4e  65 77 63 22 22 20 22 22  |e:call Newc"" ""|
00001250  50 72 65 73 74 6f 6e 3a  63 61 6c 6c 20 50 72 65  |Preston:call Pre|
00001260  73 22 22 20 22 22 53 68  65 66 66 69 65 6c 64 3a  |s"" ""Sheffield:|
00001270  63 61 6c 6c 20 53 68 65  66 22 22 20 22 22 4c 69  |call Shef"" ""Li|
00001280  73 74 3a 63 61 6c 6c 20  4c 69 73 74 22 22 22 0a  |st:call List""".|
00001290  65 6c 73 65 69 66 20 22  7b 6c 6f 63 61 6c 7d 22  |elseif "{local}"|
000012a0  20 3d 20 22 50 72 65 73  74 6f 6e 22 0a 20 20 73  | = "Preston".  s|
000012b0  65 74 20 73 6c 69 70 6d  65 6e 75 20 22 22 22 50  |et slipmenu """P|
000012c0  72 65 73 74 6f 6e 3a 63  61 6c 6c 20 50 72 65 73  |reston:call Pres|
000012d0  22 22 20 22 22 4c 6f 6e  64 6f 6e 3a 63 61 6c 6c  |"" ""London:call|
000012e0  20 4c 6f 6e 64 22 22 20  22 22 4c 65 65 64 73 3a  | Lond"" ""Leeds:|
000012f0  63 61 6c 6c 20 4c 65 65  64 22 22 20 22 22 4d 61  |call Leed"" ""Ma|
00001300  6e 63 68 65 73 74 65 72  3a 63 61 6c 6c 20 4d 61  |nchester:call Ma|
00001310  6e 63 22 22 20 22 22 4e  65 77 63 61 73 74 6c 65  |nc"" ""Newcastle|
00001320  3a 63 61 6c 6c 20 4e 65  77 63 22 22 20 22 22 4e  |:call Newc"" ""N|
00001330  6f 74 74 69 6e 67 68 61  6d 3a 63 61 6c 6c 20 4e  |ottingham:call N|
00001340  6f 74 74 22 22 20 22 22  53 68 65 66 66 69 65 6c  |ott"" ""Sheffiel|
00001350  64 3a 63 61 6c 6c 20 53  68 65 66 22 22 20 22 22  |d:call Shef"" ""|
00001360  4c 69 73 74 3a 63 61 6c  6c 20 4c 69 73 74 22 22  |List:call List""|
00001370  22 0a 65 6c 73 65 69 66  20 22 7b 6c 6f 63 61 6c  |".elseif "{local|
00001380  7d 22 20 3d 20 22 53 68  65 66 66 69 65 6c 64 22  |}" = "Sheffield"|
00001390  0a 20 20 73 65 74 20 73  6c 69 70 6d 65 6e 75 20  |.  set slipmenu |
000013a0  22 22 22 53 68 65 66 66  69 65 6c 64 3a 63 61 6c  |"""Sheffield:cal|
000013b0  6c 20 53 68 65 66 22 22  20 22 22 4c 6f 6e 64 6f  |l Shef"" ""Londo|
000013c0  6e 3a 63 61 6c 6c 20 4c  6f 6e 64 22 22 20 22 22  |n:call Lond"" ""|
000013d0  4c 65 65 64 73 3a 63 61  6c 6c 20 4c 65 65 64 22  |Leeds:call Leed"|
000013e0  22 20 22 22 4d 61 6e 63  68 65 73 74 65 72 3a 63  |" ""Manchester:c|
000013f0  61 6c 6c 20 4d 61 6e 63  22 22 20 22 22 4e 65 77  |all Manc"" ""New|
00001400  63 61 73 74 6c 65 3a 63  61 6c 6c 20 4e 65 77 63  |castle:call Newc|
00001410  22 22 20 22 22 4e 6f 74  74 69 6e 67 68 61 6d 3a  |"" ""Nottingham:|
00001420  63 61 6c 6c 20 4e 6f 74  74 22 22 20 22 22 50 72  |call Nott"" ""Pr|
00001430  65 73 74 6f 6e 3a 63 61  6c 6c 20 50 72 65 73 22  |eston:call Pres"|
00001440  22 20 22 22 4c 69 73 74  3a 63 61 6c 6c 20 4c 69  |" ""List:call Li|
00001450  73 74 22 22 22 0a 65 6c  73 65 0a 20 20 73 65 74  |st""".else.  set|
00001460  20 73 6c 69 70 6d 65 6e  75 20 22 22 22 7b 6d 65  | slipmenu """{me|
00001470  6e 75 6c 6f 63 61 6c 7d  3a 63 61 6c 6c 20 7b 6c  |nulocal}:call {l|
00001480  6f 63 34 7d 22 22 20 22  22 4c 6f 6e 64 6f 6e 3a  |oc4}"" ""London:|
00001490  63 61 6c 6c 20 4c 6f 6e  64 22 22 20 22 22 4c 65  |call Lond"" ""Le|
000014a0  65 64 73 3a 63 61 6c 6c  20 4c 65 65 64 22 22 20  |eds:call Leed"" |
000014b0  22 22 4d 61 6e 63 68 65  73 74 65 72 3a 63 61 6c  |""Manchester:cal|
000014c0  6c 20 4d 61 6e 63 22 22  20 22 22 4e 65 77 63 61  |l Manc"" ""Newca|
000014d0  73 74 6c 65 3a 63 61 6c  6c 20 4e 65 77 63 22 22  |stle:call Newc""|
000014e0  20 22 22 4e 6f 74 74 69  6e 67 68 61 6d 3a 63 61  | ""Nottingham:ca|
000014f0  6c 6c 20 4e 6f 74 74 22  22 20 22 22 50 72 65 73  |ll Nott"" ""Pres|
00001500  74 6f 6e 3a 63 61 6c 6c  20 50 72 65 73 22 22 20  |ton:call Pres"" |
00001510  22 22 53 68 65 66 66 69  65 6c 64 3a 63 61 6c 6c  |""Sheffield:call|
00001520  20 53 68 65 66 22 22 20  22 22 4c 69 73 74 3a 63  | Shef"" ""List:c|
00001530  61 6c 6c 20 4c 69 73 74  22 22 22 0a 65 6e 64 69  |all List""".endi|
00001540  66 0a 0a 23 2d 2d 2d 20  53 65 65 20 69 66 20 74  |f..#--- See if t|
00001550  68 65 20 75 73 65 72 20  77 61 6e 74 73 20 74 6f  |he user wants to|
00001560  20 63 61 6c 6c 20 44 65  6d 6f 6e 20 74 6f 20 67  | call Demon to g|
00001570  65 74 20 74 68 65 20 49  50 20 61 64 64 72 65 73  |et the IP addres|
00001580  73 0a 69 66 20 7b 67 65  74 69 70 7d 0a 0a 23 2d  |s.if {getip}..#-|
00001590  2d 2d 20 44 65 6d 6f 6e  20 77 61 6e 74 20 70 61  |-- Demon want pa|
000015a0  73 73 77 6f 72 64 73 20  74 6f 20 62 65 20 62 65  |sswords to be be|
000015b0  74 77 65 65 6e 20 35 20  74 6f 20 38 20 63 68 61  |tween 5 to 8 cha|
000015c0  72 61 63 74 65 72 73 20  6c 6f 6e 67 0a 20 20 69  |racters long.  i|
000015d0  66 20 4c 45 4e 20 22 7b  64 65 6d 70 77 7d 22 20  |f LEN "{dempw}" |
000015e0  3c 20 35 0a 20 20 20 20  65 72 72 6f 72 20 44 65  |< 5.    error De|
000015f0  6d 6f 6e 20 70 61 73 73  77 6f 72 64 20 6d 75 73  |mon password mus|
00001600  74 20 62 65 20 35 20 6f  72 20 6d 6f 72 65 20 63  |t be 5 or more c|
00001610  68 61 72 61 63 74 65 72  73 0a 20 20 20 20 67 6f  |haracters.    go|
00001620  74 6f 20 72 65 74 72 79  0a 20 20 65 6e 64 69 66  |to retry.  endif|
00001630  0a 0a 20 20 63 6f 6e 66  69 72 6d 20 6f 6b 20 41  |..  confirm ok A|
00001640  62 6f 75 74 20 74 6f 20  72 69 6e 67 20 44 65 6d  |bout to ring Dem|
00001650  6f 6e 20 74 6f 20 73 65  74 20 70 61 73 73 77 6f  |on to set passwo|
00001660  72 64 20 61 6e 64 20 67  65 74 20 49 50 20 61 64  |rd and get IP ad|
00001670  64 72 65 73 73 2e 20 20  43 68 65 63 6b 20 79 6f  |dress.  Check yo|
00001680  75 72 20 6d 6f 64 65 6d  20 69 73 20 73 65 74 20  |ur modem is set |
00001690  75 70 2e 0a 20 20 69 66  20 7b 6f 6b 7d 20 3d 20  |up..  if {ok} = |
000016a0  30 0a 20 20 20 20 67 6f  74 6f 20 72 65 74 72 79  |0.    goto retry|
000016b0  0a 20 20 65 6e 64 69 66  0a 0a 20 20 73 75 62 73  |.  endif..  subs|
000016c0  74 69 74 75 74 69 6f 6e  20 7b 7b 20 7d 7d 0a 20  |titution {{ }}. |
000016d0  20 74 72 61 6e 73 6c 61  74 65 20 3c 44 65 6d 43  | translate <DemC|
000016e0  6f 6e 66 69 67 24 44 69  72 3e 2e 42 6c 61 6e 6b  |onfig$Dir>.Blank|
000016f0  73 2e 46 69 72 73 74 44  65 6d 6f 6e 20 3c 44 65  |s.FirstDemon <De|
00001700  6d 43 6f 6e 66 69 67 24  44 69 72 3e 2e 46 69 72  |mConfig$Dir>.Fir|
00001710  73 74 44 65 6d 6f 6e 0a  20 20 73 75 62 73 74 69  |stDemon.  substi|
00001720  74 75 74 69 6f 6e 20 7b  20 7d 0a 20 20 63 6c 69  |tution { }.  cli|
00001730  20 52 75 6e 20 3c 49 6e  74 65 72 6e 65 74 24 44  | Run <Internet$D|
00001740  69 72 3e 2e 21 53 4c 49  50 64 69 61 6c 20 2d 66  |ir>.!SLIPdial -f|
00001750  69 6c 65 20 3c 44 65 6d  43 6f 6e 66 69 67 24 44  |ile <DemConfig$D|
00001760  69 72 3e 2e 46 69 72 73  74 44 65 6d 6f 6e 0a 23  |ir>.FirstDemon.#|
00001770  2d 2d 2d 20 22 49 27 6c  6c 20 62 65 20 62 61 63  |--- "I'll be bac|
00001780  6b 2e 2e 2e 22 20 28 72  65 73 74 61 72 74 65 64  |k..." (restarted|
00001790  20 62 79 20 74 68 65 20  53 4c 49 50 64 69 61 6c  | by the SLIPdial|
000017a0  20 73 63 72 69 70 74 29  0a 65 6c 73 65 0a 0a 23  | script).else..#|
000017b0  2d 2d 2d 20 43 68 65 63  6b 20 74 68 61 74 20 74  |--- Check that t|
000017c0  68 65 20 49 50 20 61 64  64 72 65 73 73 20 69 73  |he IP address is|
000017d0  20 76 61 6c 69 64 0a 20  20 63 6c 69 20 73 65 74  | valid.  cli set|
000017e0  20 44 65 6d 43 6f 6e 66  69 67 24 49 70 41 64 64  | DemConfig$IpAdd|
000017f0  72 20 7b 69 70 5f 61 64  64 72 7d 0a 20 20 63 6c  |r {ip_addr}.  cl|
00001800  69 20 42 41 53 49 43 20  2d 71 75 69 74 20 3c 44  |i BASIC -quit <D|
00001810  65 6d 43 6f 6e 66 69 67  24 44 69 72 3e 2e 43 68  |emConfig$Dir>.Ch|
00001820  65 63 6b 49 70 0a 20 20  69 66 20 44 65 6d 43 6f  |eckIp.  if DemCo|
00001830  6e 66 69 67 24 49 70 56  61 6c 69 64 20 3d 20 30  |nfig$IpValid = 0|
00001840  0a 20 20 20 20 65 72 72  6f 72 20 49 6e 76 61 6c  |.    error Inval|
00001850  69 64 20 49 50 20 61 64  64 72 65 73 73 20 7b 69  |id IP address {i|
00001860  70 5f 61 64 64 72 7d 0a  20 20 20 20 67 6f 74 6f  |p_addr}.    goto|
00001870  20 72 65 74 72 79 0a 20  20 65 6e 64 69 66 0a 0a  | retry.  endif..|
00001880  23 2d 2d 2d 20 4e 6f 77  20 64 6f 20 74 68 65 20  |#--- Now do the |
00001890  61 63 74 75 61 6c 20 63  6f 6e 66 69 67 75 72 61  |actual configura|
000018a0  74 69 6f 6e 0a 20 20 73  65 74 20 64 6f 6d 61 69  |tion.  set domai|
000018b0  6e 20 22 64 65 6d 6f 6e  2e 63 6f 2e 75 6b 22 0a  |n "demon.co.uk".|
000018c0  20 20 73 65 74 20 68 6f  73 74 20 22 7b 6e 6f 64  |  set host "{nod|
000018d0  65 7d 2e 7b 64 6f 6d 61  69 6e 7d 22 0a 20 20 73  |e}.{domain}".  s|
000018e0  65 74 20 69 6e 65 74 64  69 72 20 49 6e 74 65 72  |et inetdir Inter|
000018f0  6e 65 74 24 44 69 72 0a  0a 23 2d 2d 2d 20 53 65  |net$Dir..#--- Se|
00001900  74 20 75 70 20 54 43 50  49 50 2e 20 20 4e 6f 74  |t up TCPIP.  Not|
00001910  65 20 54 43 50 49 50 24  44 69 72 20 69 73 20 21  |e TCPIP$Dir is !|
00001920  54 43 50 49 50 55 73 65  72 2c 20 6e 6f 74 20 21  |TCPIPUser, not !|
00001930  54 43 50 49 50 2e 0a 20  20 63 6c 69 20 73 65 74  |TCPIP..  cli set|
00001940  20 74 65 6d 70 20 3c 49  6e 74 65 72 6e 65 74 24  | temp <Internet$|
00001950  44 69 72 3e 2e 21 54 43  50 49 50 55 73 65 72 0a  |Dir>.!TCPIPUser.|
00001960  20 20 63 6c 69 20 73 65  74 20 74 65 6d 70 32 20  |  cli set temp2 |
00001970  3c 74 65 6d 70 3e 2e 49  6e 73 74 61 6c 6c 2e 54  |<temp>.Install.T|
00001980  43 50 49 50 55 73 65 72  0a 20 20 63 6c 69 20 20  |CPIPUser.  cli  |
00001990  63 6f 70 79 20 3c 74 65  6d 70 32 3e 2e 21 52 75  |copy <temp2>.!Ru|
000019a0  6e 20 20 20 3c 74 65 6d  70 3e 2e 21 52 75 6e 20  |n   <temp>.!Run |
000019b0  7e 63 7e 76 66 0a 20 20  74 72 61 6e 73 6c 61 74  |~c~vf.  translat|
000019c0  65 20 3c 74 65 6d 70 32  3e 2e 43 6f 6e 66 69 67  |e <temp2>.Config|
000019d0  20 3c 74 65 6d 70 3e 2e  43 6f 6e 66 69 67 0a 20  | <temp>.Config. |
000019e0  20 74 72 61 6e 73 6c 61  74 65 20 3c 74 65 6d 70  | translate <temp|
000019f0  32 3e 2e 44 6f 6d 61 69  6e 20 3c 74 65 6d 70 3e  |2>.Domain <temp>|
00001a00  2e 44 6f 6d 61 69 6e 0a  20 20 63 6c 69 20 63 6f  |.Domain.  cli co|
00001a10  70 79 20 3c 44 65 6d 43  6f 6e 66 69 67 24 44 69  |py <DemConfig$Di|
00001a20  72 3e 2e 42 6c 61 6e 6b  73 2e 41 75 74 6f 45 78  |r>.Blanks.AutoEx|
00001a30  65 63 20 3c 74 65 6d 70  3e 2e 41 75 74 6f 45 78  |ec <temp>.AutoEx|
00001a40  65 63 20 7e 63 7e 76 66  0a 20 20 63 6c 69 20 63  |ec ~c~vf.  cli c|
00001a50  6f 70 79 20 3c 44 65 6d  43 6f 6e 66 69 67 24 44  |opy <DemConfig$D|
00001a60  69 72 3e 2e 42 6c 61 6e  6b 73 2e 44 65 6d 47 72  |ir>.Blanks.DemGr|
00001a70  6f 75 70 20 3c 74 65 6d  70 3e 2e 4e 4e 54 50 2e  |oup <temp>.NNTP.|
00001a80  44 65 6d 47 72 6f 75 70  20 7e 63 7e 76 66 0a 0a  |DemGroup ~c~vf..|
00001a90  23 2d 2d 2d 20 43 72 65  61 74 65 20 74 68 65 20  |#--- Create the |
00001aa0  4e 65 77 73 44 69 72 20  61 6e 64 20 63 6f 6e 66  |NewsDir and conf|
00001ab0  69 67 75 72 65 20 21 4e  65 77 73 42 61 73 65 0a  |igure !NewsBase.|
00001ac0  23 2d 2d 2d 20 55 73 65  20 74 65 6d 70 20 76 61  |#--- Use temp va|
00001ad0  72 69 61 62 6c 65 73 20  74 6f 20 73 74 6f 70 20  |riables to stop |
00001ae0  63 6f 6d 6d 61 6e 64 20  6c 69 6e 65 20 67 65 74  |command line get|
00001af0  74 69 6e 67 20 74 6f 6f  20 6c 6f 6e 67 0a 20 20  |ting too long.  |
00001b00  63 6c 69 20 73 65 74 20  74 65 6d 70 20 3c 49 6e  |cli set temp <In|
00001b10  74 65 72 6e 65 74 24 44  69 72 3e 2e 21 4e 65 77  |ternet$Dir>.!New|
00001b20  73 44 69 72 0a 20 20 63  6c 69 20 73 65 74 20 74  |sDir.  cli set t|
00001b30  65 6d 70 32 20 3c 49 6e  74 65 72 6e 65 74 24 44  |emp2 <Internet$D|
00001b40  69 72 3e 2e 21 4e 65 77  73 42 61 73 65 0a 20 20  |ir>.!NewsBase.  |
00001b50  63 6c 69 20 63 64 69 72  20 3c 74 65 6d 70 3e 0a  |cli cdir <temp>.|
00001b60  20 20 63 6c 69 20 63 6f  70 79 20 3c 74 65 6d 70  |  cli copy <temp|
00001b70  32 3e 2e 73 75 70 70 6f  72 74 2e 6e 65 77 73 62  |2>.support.newsb|
00001b80  61 73 65 2e 6e 65 77 73  64 69 72 20 3c 74 65 6d  |ase.newsdir <tem|
00001b90  70 3e 20 7e 63 7e 76 66  72 0a 20 20 63 6c 69 20  |p> ~c~vfr.  cli |
00001ba0  63 64 69 72 20 3c 74 65  6d 70 3e 2e 6e 65 77 73  |cdir <temp>.news|
00001bb0  0a 20 20 63 6c 69 20 63  64 69 72 20 3c 74 65 6d  |.  cli cdir <tem|
00001bc0  70 3e 2e 63 6f 6e 66 69  67 0a 20 20 63 6c 69 20  |p>.config.  cli |
00001bd0  63 64 69 72 20 3c 74 65  6d 70 3e 2e 6e 65 77 73  |cdir <temp>.news|
00001be0  62 61 73 65 0a 20 20 63  6c 69 20 63 64 69 72 20  |base.  cli cdir |
00001bf0  3c 74 65 6d 70 3e 2e 6e  65 77 73 62 61 73 65 2e  |<temp>.newsbase.|
00001c00  63 6f 6e 66 69 67 0a 20  20 74 72 61 6e 73 6c 61  |config.  transla|
00001c10  74 65 20 3c 44 65 6d 43  6f 6e 66 69 67 24 44 69  |te <DemConfig$Di|
00001c20  72 3e 2e 42 6c 61 6e 6b  73 2e 21 6e 62 63 6f 6e  |r>.Blanks.!nbcon|
00001c30  66 69 67 20 3c 74 65 6d  70 3e 2e 6e 65 77 73 62  |fig <temp>.newsb|
00001c40  61 73 65 2e 63 6f 6e 66  69 67 2e 21 6e 62 63 6f  |ase.config.!nbco|
00001c50  6e 66 69 67 0a 20 20 63  6c 69 20 63 64 69 72 20  |nfig.  cli cdir |
00001c60  3c 74 65 6d 70 3e 2e 6e  65 77 73 62 61 73 65 2e  |<temp>.newsbase.|
00001c70  64 65 62 75 67 0a 20 20  63 6c 69 20 63 64 69 72  |debug.  cli cdir|
00001c80  20 3c 74 65 6d 70 3e 2e  6e 65 77 73 62 61 73 65  | <temp>.newsbase|
00001c90  2e 73 63 72 61 74 63 68  0a 20 20 63 6c 69 20 63  |.scratch.  cli c|
00001ca0  64 69 72 20 3c 74 65 6d  70 3e 2e 6e 65 77 73 62  |dir <temp>.newsb|
00001cb0  61 73 65 2e 73 70 6f 6f  6c 0a 20 20 63 6c 69 20  |ase.spool.  cli |
00001cc0  63 64 69 72 20 3c 74 65  6d 70 3e 2e 6e 65 77 73  |cdir <temp>.news|
00001cd0  62 61 73 65 2e 77 6f 72  6b 0a 0a 23 2d 2d 2d 20  |base.work..#--- |
00001ce0  43 72 65 61 74 65 20 75  73 65 72 20 64 65 74 61  |Create user deta|
00001cf0  69 6c 73 0a 20 20 63 6c  69 20 63 64 69 72 20 3c  |ils.  cli cdir <|
00001d00  74 65 6d 70 3e 2e 55 73  65 72 48 6f 6d 65 0a 20  |temp>.UserHome. |
00001d10  20 63 6c 69 20 73 65 74  20 74 65 6d 70 32 20 3c  | cli set temp2 <|
00001d20  74 65 6d 70 3e 2e 55 73  65 72 48 6f 6d 65 2e 7b  |temp>.UserHome.{|
00001d30  75 73 65 72 69 64 7d 0a  20 20 63 6c 69 20 63 64  |userid}.  cli cd|
00001d40  69 72 20 3c 74 65 6d 70  32 3e 0a 20 20 63 6c 69  |ir <temp2>.  cli|
00001d50  20 63 6f 70 79 20 3c 44  65 6d 43 6f 6e 66 69 67  | copy <DemConfig|
00001d60  24 44 69 72 3e 2e 42 6c  61 6e 6b 73 2e 66 6f 72  |$Dir>.Blanks.for|
00001d70  77 61 72 64 20 3c 74 65  6d 70 32 3e 2e 66 6f 72  |ward <temp2>.for|
00001d80  77 61 72 64 20 7e 63 7e  76 66 0a 20 20 63 6c 69  |ward ~c~vf.  cli|
00001d90  20 63 6f 70 79 20 3c 44  65 6d 43 6f 6e 66 69 67  | copy <DemConfig|
00001da0  24 44 69 72 3e 2e 42 6c  61 6e 6b 73 2e 75 73 65  |$Dir>.Blanks.use|
00001db0  72 69 6e 66 6f 20 3c 74  65 6d 70 32 3e 2e 75 73  |rinfo <temp2>.us|
00001dc0  65 72 69 6e 66 6f 20 7e  63 7e 76 66 0a 20 20 74  |erinfo ~c~vf.  t|
00001dd0  72 61 6e 73 6c 61 74 65  20 3c 44 65 6d 43 6f 6e  |ranslate <DemCon|
00001de0  66 69 67 24 44 69 72 3e  2e 42 6c 61 6e 6b 73 2e  |fig$Dir>.Blanks.|
00001df0  52 4c 4e 20 3c 74 65 6d  70 32 3e 2e 52 4c 4e 20  |RLN <temp2>.RLN |
00001e00  7e 63 7e 76 66 0a 20 20  63 6c 69 20 63 6f 70 79  |~c~vf.  cli copy|
00001e10  20 3c 74 65 6d 70 32 3e  2e 52 4c 4e 20 3c 74 65  | <temp2>.RLN <te|
00001e20  6d 70 32 3e 2e 53 69 67  6e 61 74 75 72 65 20 7e  |mp2>.Signature ~|
00001e30  63 7e 76 66 0a 0a 20 20  63 6c 69 20 73 65 74 20  |c~vf..  cli set |
00001e40  74 65 6d 70 32 20 3c 74  65 6d 70 3e 2e 55 73 65  |temp2 <temp>.Use|
00001e50  72 48 6f 6d 65 2e 64 65  66 61 75 6c 74 0a 20 20  |rHome.default.  |
00001e60  63 6c 69 20 63 64 69 72  20 3c 74 65 6d 70 32 3e  |cli cdir <temp2>|
00001e70  0a 20 20 63 6c 69 20 63  6f 70 79 20 3c 44 65 6d  |.  cli copy <Dem|
00001e80  43 6f 6e 66 69 67 24 44  69 72 3e 2e 42 6c 61 6e  |Config$Dir>.Blan|
00001e90  6b 73 2e 66 6f 72 77 61  72 64 20 3c 74 65 6d 70  |ks.forward <temp|
00001ea0  32 3e 2e 66 6f 72 77 61  72 64 20 7e 63 7e 76 66  |2>.forward ~c~vf|
00001eb0  0a 20 20 63 6c 69 20 63  6f 70 79 20 3c 44 65 6d  |.  cli copy <Dem|
00001ec0  43 6f 6e 66 69 67 24 44  69 72 3e 2e 42 6c 61 6e  |Config$Dir>.Blan|
00001ed0  6b 73 2e 75 73 65 72 69  6e 66 6f 20 3c 74 65 6d  |ks.userinfo <tem|
00001ee0  70 32 3e 2e 75 73 65 72  69 6e 66 6f 20 7e 63 7e  |p2>.userinfo ~c~|
00001ef0  76 66 0a 0a 20 20 63 6c  69 20 73 65 74 20 74 65  |vf..  cli set te|
00001f00  6d 70 32 20 3c 74 65 6d  70 3e 2e 55 73 65 72 48  |mp2 <temp>.UserH|
00001f10  6f 6d 65 2e 70 6f 73 74  6d 61 73 74 65 72 0a 20  |ome.postmaster. |
00001f20  20 63 6c 69 20 63 64 69  72 20 3c 74 65 6d 70 32  | cli cdir <temp2|
00001f30  3e 0a 20 20 63 6c 69 20  63 6f 70 79 20 3c 44 65  |>.  cli copy <De|
00001f40  6d 43 6f 6e 66 69 67 24  44 69 72 3e 2e 42 6c 61  |mConfig$Dir>.Bla|
00001f50  6e 6b 73 2e 66 6f 72 77  61 72 64 20 3c 74 65 6d  |nks.forward <tem|
00001f60  70 32 3e 2e 66 6f 72 77  61 72 64 20 7e 63 7e 76  |p2>.forward ~c~v|
00001f70  66 0a 20 20 63 6c 69 20  63 6f 70 79 20 3c 44 65  |f.  cli copy <De|
00001f80  6d 43 6f 6e 66 69 67 24  44 69 72 3e 2e 42 6c 61  |mConfig$Dir>.Bla|
00001f90  6e 6b 73 2e 75 73 65 72  69 6e 66 6f 20 3c 74 65  |nks.userinfo <te|
00001fa0  6d 70 32 3e 2e 70 6f 73  74 69 6e 66 6f 20 7e 63  |mp2>.postinfo ~c|
00001fb0  7e 76 66 0a 0a 20 20 63  6c 69 20 73 65 74 20 74  |~vf..  cli set t|
00001fc0  65 6d 70 32 20 3c 74 65  6d 70 3e 2e 55 73 65 72  |emp2 <temp>.User|
00001fd0  48 6f 6d 65 2e 72 6f 6f  74 0a 20 20 63 6c 69 20  |Home.root.  cli |
00001fe0  63 64 69 72 20 3c 74 65  6d 70 32 3e 0a 20 20 63  |cdir <temp2>.  c|
00001ff0  6c 69 20 63 6f 70 79 20  3c 44 65 6d 43 6f 6e 66  |li copy <DemConf|
00002000  69 67 24 44 69 72 3e 2e  42 6c 61 6e 6b 73 2e 66  |ig$Dir>.Blanks.f|
00002010  6f 72 77 61 72 64 20 3c  74 65 6d 70 32 3e 2e 66  |orward <temp2>.f|
00002020  6f 72 77 61 72 64 20 7e  63 7e 76 66 0a 20 20 63  |orward ~c~vf.  c|
00002030  6c 69 20 63 6f 70 79 20  3c 44 65 6d 43 6f 6e 66  |li copy <DemConf|
00002040  69 67 24 44 69 72 3e 2e  42 6c 61 6e 6b 73 2e 75  |ig$Dir>.Blanks.u|
00002050  73 65 72 69 6e 66 6f 20  3c 74 65 6d 70 32 3e 2e  |serinfo <temp2>.|
00002060  72 6f 6f 74 69 6e 66 6f  20 7e 63 7e 76 66 0a 0a  |rootinfo ~c~vf..|
00002070  23 2d 2d 2d 20 53 65 74  20 75 70 20 77 65 6c 63  |#--- Set up welc|
00002080  6f 6d 65 20 6e 65 77 73  2f 6d 61 69 6c 20 66 6f  |ome news/mail fo|
00002090  72 20 64 65 6c 69 76 65  72 79 0a 20 20 63 6c 69  |r delivery.  cli|
000020a0  20 73 65 74 20 74 65 6d  70 20 3c 49 6e 74 65 72  | set temp <Inter|
000020b0  6e 65 74 24 44 69 72 3e  2e 21 4e 65 77 73 44 69  |net$Dir>.!NewsDi|
000020c0  72 2e 6e 65 77 73 62 61  73 65 2e 77 6f 72 6b 0a  |r.newsbase.work.|
000020d0  20 20 63 6c 69 20 73 65  74 20 74 65 6d 70 32 20  |  cli set temp2 |
000020e0  3c 49 6e 74 65 72 6e 65  74 24 44 69 72 3e 2e 21  |<Internet$Dir>.!|
000020f0  4e 65 77 73 42 61 73 65  2e 73 75 70 70 6f 72 74  |NewsBase.support|
00002100  2e 6e 65 77 73 62 61 73  65 2e 77 65 6c 63 6f 6d  |.newsbase.welcom|
00002110  65 0a 20 20 63 6c 69 20  63 6f 70 79 20 3c 74 65  |e.  cli copy <te|
00002120  6d 70 32 3e 2e 6e 65 77  5f 6d 61 69 6c 20 3c 74  |mp2>.new_mail <t|
00002130  65 6d 70 3e 2e 6e 65 77  5f 6d 61 69 6c 20 7e 63  |emp>.new_mail ~c|
00002140  7e 76 66 0a 20 20 63 6c  69 20 63 6f 70 79 20 3c  |~vf.  cli copy <|
00002150  74 65 6d 70 32 3e 2e 6e  65 77 5f 6e 65 77 73 20  |temp2>.new_news |
00002160  3c 74 65 6d 70 3e 2e 6e  65 77 5f 6e 65 77 73 20  |<temp>.new_news |
00002170  7e 63 7e 76 66 0a 0a 23  2d 2d 2d 20 53 65 74 20  |~c~vf..#--- Set |
00002180  75 70 20 54 54 46 4e 2e  20 20 55 73 65 20 61 20  |up TTFN.  Use a |
00002190  42 41 53 49 43 20 70 72  6f 67 72 61 6d 20 74 6f  |BASIC program to|
000021a0  20 63 72 65 61 74 65 20  74 68 65 20 62 69 6e 61  | create the bina|
000021b0  72 79 20 63 6f 6e 66 69  67 20 66 69 6c 65 0a 20  |ry config file. |
000021c0  20 63 6c 69 20 73 65 74  20 74 65 6d 70 20 3c 44  | cli set temp <D|
000021d0  65 6d 43 6f 6e 66 69 67  24 44 69 72 3e 2e 74 65  |emConfig$Dir>.te|
000021e0  6d 70 0a 20 20 63 6c 69  20 73 65 74 20 74 65 6d  |mp.  cli set tem|
000021f0  70 32 20 3c 49 6e 74 65  72 6e 65 74 24 44 69 72  |p2 <Internet$Dir|
00002200  3e 2e 21 54 54 46 4e 0a  20 20 73 65 74 20 64 65  |>.!TTFN.  set de|
00002210  73 74 20 22 3c 49 6e 74  65 72 6e 65 74 24 44 69  |st "<Internet$Di|
00002220  72 3e 2e 21 54 54 46 4e  2e 52 65 73 6f 75 72 63  |r>.!TTFN.Resourc|
00002230  65 73 2e 21 43 6f 6e 66  69 67 22 0a 20 20 74 72  |es.!Config".  tr|
00002240  61 6e 73 6c 61 74 65 20  3c 44 65 6d 43 6f 6e 66  |anslate <DemConf|
00002250  69 67 24 44 69 72 3e 2e  42 6c 61 6e 6b 73 2e 54  |ig$Dir>.Blanks.T|
00002260  54 46 4e 63 6f 6e 66 69  67 20 3c 74 65 6d 70 3e  |TFNconfig <temp>|
00002270  0a 20 20 63 6c 69 20 62  61 73 69 63 20 2d 71 75  |.  cli basic -qu|
00002280  69 74 20 3c 74 65 6d 70  3e 0a 20 20 63 6c 69 20  |it <temp>.  cli |
00002290  72 65 6d 6f 76 65 20 3c  74 65 6d 70 3e 0a 0a 23  |remove <temp>..#|
000022a0  2d 2d 2d 20 53 65 74 20  75 70 20 53 4c 49 50 64  |--- Set up SLIPd|
000022b0  69 61 6c 0a 20 20 63 6c  69 20 73 65 74 20 74 65  |ial.  cli set te|
000022c0  6d 70 20 3c 49 6e 74 65  72 6e 65 74 24 44 69 72  |mp <Internet$Dir|
000022d0  3e 2e 21 53 4c 49 50 64  69 61 6c 2e 53 63 72 69  |>.!SLIPdial.Scri|
000022e0  70 74 73 0a 20 20 74 72  61 6e 73 6c 61 74 65 20  |pts.  translate |
000022f0  3c 44 65 6d 43 6f 6e 66  69 67 24 44 69 72 3e 2e  |<DemConfig$Dir>.|
00002300  42 6c 61 6e 6b 73 2e 53  4c 49 50 63 6f 6e 66 69  |Blanks.SLIPconfi|
00002310  67 20 3c 74 65 6d 70 3e  2e 64 65 6d 6f 6e 63 6f  |g <temp>.demonco|
00002320  6e 66 67 0a 23 2d 2d 2d  20 53 4c 49 50 64 69 61  |nfg.#--- SLIPdia|
00002330  6c 20 75 73 65 73 20 22  7b 22 20 61 6e 64 20 22  |l uses "{" and "|
00002340  7d 22 20 73 6f 20 6e 65  65 64 20 64 69 66 66 65  |}" so need diffe|
00002350  72 65 6e 74 20 73 75 62  73 74 69 74 75 74 69 6f  |rent substitutio|
00002360  6e 20 64 65 6c 69 6d 69  74 65 72 73 0a 20 20 73  |n delimiters.  s|
00002370  75 62 73 74 69 74 75 74  69 6f 6e 20 7b 7b 20 7d  |ubstitution {{ }|
00002380  7d 0a 20 20 74 72 61 6e  73 6c 61 74 65 20 3c 44  |}.  translate <D|
00002390  65 6d 43 6f 6e 66 69 67  24 44 69 72 3e 2e 42 6c  |emConfig$Dir>.Bl|
000023a0  61 6e 6b 73 2e 53 4c 49  50 44 65 6d 6f 6e 20 3c  |anks.SLIPDemon <|
000023b0  74 65 6d 70 3e 2e 44 65  6d 6f 6e 0a 20 20 73 75  |temp>.Demon.  su|
000023c0  62 73 74 69 74 75 74 69  6f 6e 20 7b 20 7d 0a 0a  |bstitution { }..|
000023d0  23 2d 2d 2d 20 45 6e 73  75 72 65 20 61 6c 6c 20  |#--- Ensure all |
000023e0  61 70 70 73 20 62 6f 6f  74 65 64 20 28 6d 61 79  |apps booted (may|
000023f0  20 6e 6f 74 20 62 65 20  61 66 74 65 72 20 75 6e  | not be after un|
00002400  61 72 63 68 69 76 69 6e  67 29 0a 20 20 63 6c 69  |archiving).  cli|
00002410  20 72 75 6e 20 3c 49 6e  74 65 72 6e 65 74 24 44  | run <Internet$D|
00002420  69 72 3e 2e 21 54 43 50  49 50 2e 21 42 6f 6f 74  |ir>.!TCPIP.!Boot|
00002430  0a 20 20 63 6c 69 20 72  75 6e 20 3c 49 6e 74 65  |.  cli run <Inte|
00002440  72 6e 65 74 24 44 69 72  3e 2e 21 54 43 50 49 50  |rnet$Dir>.!TCPIP|
00002450  55 73 65 72 2e 21 42 6f  6f 74 0a 20 20 63 6c 69  |User.!Boot.  cli|
00002460  20 72 75 6e 20 3c 49 6e  74 65 72 6e 65 74 24 44  | run <Internet$D|
00002470  69 72 3e 2e 21 4e 65 77  73 42 61 73 65 2e 21 42  |ir>.!NewsBase.!B|
00002480  6f 6f 74 0a 20 20 63 6c  69 20 72 75 6e 20 3c 49  |oot.  cli run <I|
00002490  6e 74 65 72 6e 65 74 24  44 69 72 3e 2e 21 4e 65  |nternet$Dir>.!Ne|
000024a0  77 73 44 69 72 2e 21 42  6f 6f 74 0a 20 20 63 6c  |wsDir.!Boot.  cl|
000024b0  69 20 72 75 6e 20 3c 49  6e 74 65 72 6e 65 74 24  |i run <Internet$|
000024c0  44 69 72 3e 2e 21 54 54  46 4e 2e 21 42 6f 6f 74  |Dir>.!TTFN.!Boot|
000024d0  0a 20 20 63 6c 69 20 72  75 6e 20 3c 49 6e 74 65  |.  cli run <Inte|
000024e0  72 6e 65 74 24 44 69 72  3e 2e 21 53 4c 49 50 64  |rnet$Dir>.!SLIPd|
000024f0  69 61 6c 2e 21 42 6f 6f  74 0a 20 20 0a 20 20 63  |ial.!Boot.  .  c|
00002500  6f 6e 66 69 72 6d 20 6f  6b 20 43 6f 6e 66 69 67  |onfirm ok Config|
00002510  75 72 61 74 69 6f 6e 20  63 6f 6d 70 6c 65 74 65  |uration complete|
00002520  64 0a 20 20 69 66 20 7b  6f 6b 7d 20 3d 20 30 0a  |d.  if {ok} = 0.|
00002530  20 20 20 20 67 6f 74 6f  20 72 65 74 72 79 0a 20  |    goto retry. |
00002540  20 65 6e 64 69 66 0a 0a  65 6e 64 69 66 0a        | endif..endif.|
0000254e