|| Socketeer v0.14
||
Set Socketeer$Dir <Obey$Dir>
Iconsprites <Obey$Dir>.!Sprites

|| Check for suitable Choices folder
||
If "<Choices$Dir>"="" Then Error No Choices folder found!  Please set Choices$Dir to a suitable location before running Socketeer.

|| Check for Block Serial Drivers
||
If "<SerialDev$Path>" = "" Then Error You need the !SerialDev application installed on your computer to use Socketeer; go to http://www.soup-kitchen.demon.co.uk/software/socketeer/ to download it or contact the author for advice.

|| Check for relevant Toolbox modules as neatly as possible
||
Unset Socketeer$ToolboxMod
RMEnsure Toolbox  0.00 RMLoad System:Modules.Toolbox.Toolbox
RMEnsure IconBar  0.00 RMLoad System:Modules.Toolbox.IconBar
RMEnsure Menu     0.00 RMLoad System:Modules.Toolbox.Menu
RMEnsure ProgInfo 0.00 RMLoad System:Modules.Toolbox.ProgInfo
RMEnsure Window   0.00 RMLoad System:Modules.Toolbox.Window
RMEnsure Toolbox  1.36 Set Socketeer$ToolboxMod Toolbox 1.36
RMEnsure IconBar  1.16 Set Socketeer$ToolboxMod Iconbar 1.16
RMEnsure Menu     0.29 Set Socketeer$ToolboxMod Menu 0.29
RMEnsure ProgInfo 0.09 Set Socketeer$ToolboxMod ProgInfo 0.09
RMEnsure Window   1.43 Set Socketeer$ToolboxMod Window 1.43
If "<Socketeer$ToolboxMod>"<>"" Then Error Some, or all of your Toolbox modules are out of date (couldn't find <Socketeer$ToolboxMod>).

|| Check for serial buffer module and configure it
||   (actually this is only really necessary for the internal serial port)
||
RMEnsure SerialBuffer 0.00 RMLoad System:Modules.SerialBuff
RMEnsure SerialBuffer 1.00 Error You need the SerialBuffer module (v1.10) to run Socketeer.
SerialBuffersize 16384 4096

|| Load our packet drivers (feel free to hack this around; as long as only
||                          one of these drivers is loaded.)
||
Run <Socketeer$Dir>.Bits.ChoosePPP
If "<PPP$Choose>"="Sergio" Then RMEnsure PPPdriver 0.00 RMRun System:Modules.Network.PPPDriver
If "<PPP$Choose>"="Acorn" Then RMEnsure PPP 0.00 RMRun System:Modules.Network.PPP
|RMEnsure SLIPdriver 0.00 X RMRun System:Modules.Network.SLIPdriver
If "<PPP$Choose><Inet$PPP$IPAddr>"="Acorn" Then Error PPP interface is not configured!  Please go to your Internet setup and configure it before loading Socketeer.

|| Resolver (Acorn / ANT one is recommended)
||
RMEnsure Resolver 0.00 RMLoad System:Modules.Network.Resolver
RMEnsure Resolver 0.48 Error You need the Resolver module (v0.48) to use Socketeer.

|| DCI4 Internet module
||
RMEnsure Internet 0.00 RMLoad System:Modules.Network.Internet
RMEnsure Internet 5.00 Error You need the Internet module (v5.00) to use Socketeer.

|| Check for DCI4 ethernet drivers 
||   (not needed for dial-up only connections, but doesn't do any harm)
Run <Socketeer$Dir>.Bits.ScanDCI4


|| PlayIt module (see http://home.clear.net.nz/pages/rickh/ )
||
RMEnsure PlayIt 1.35 RMLoad <Socketeer$Dir>.Bits.PlayIt <Socketeer$Dir>.Bits.

|| Create prefs folder if necessary
||
CDir <Choices$Dir>.Socketeer
CDir <Choices$Dir>.Socketeer.Profiles

|| Now cross our fingers
||
|| You can add these parameters to change Socketeer's behaviour:
||
||    -debuglog    generates a 'Debug' file inside !Boot.Choices.Socketeer
||    -notimesouts turns off all timeouts in the program
||    -noresconf   turns off ANT / Acorn Resolver module configuration so
||                   you can set up Stewart Brodie's instead.
||
Wimpslot -min 256k -max 256k
Run <Socketeer$Dir>.!Runimage 2><Socketeer$Dir>.^.stderr
