In message <cec7b6824e.steve@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> Steve Fryatt <lists@xxxxxxxxxxxxxxxxxx> wrote: >On 8 Nov, David Pitt wrote in message > <794ca7824e.pittdj+@xxxxxxxxxxxxxxx>: > >> In message <ef83fb804e.steve@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> >> Steve Fryatt <lists@xxxxxxxxxxxxxxxxxx> wrote: >> >> [snip - network not starting.] >> >> > I've got a small BASIC program in my boot sequence that checks the >> > network interface as soon as it starts and offers an immediate >> > power-down if there's a problem. Sometimes it can take three or four >> > attempts to get things going, which is a pain. >> >> I would be grateful for a sight of that program, or even a clue. I have >> never managed to think of a test to detect the network. > >It's nasty, and relies on the output of *EKTest 0... Creative programming then. It is sufficient for the purpose. I had been looking for a suitable SWI call, without success. [snip BASIC prog] >I've called my copy !!!NetTest, and stuck it in !Boot.Choices.Predesk, >so it gets run before most other stuff. That reduces the amount of >time wasted in powering the machine up and down. I have called it from !Boot.Utils.BootRun before PreDesk and after my Boot Spool file has started, with :- BootRun Boot:Utils.NetTest I just want to stop the Boot and leave the Iyonix to warm up if there is no network, to save having to clear subsequent errors. IF length%>100 THEN PRINT "Network I/F started OK. (";length%;")" ELSE PRINT "Network I/F failed to start. (";length%;")" ERROR 0, "Boot stopped" ENDIF END The file length is printed as a temporary diagnostic. The file length if the network is OK is 119, if there is no network it will be about 68. Many thanks, this is just what I wanted. -- David Pitt. Computing with RISC OS. --- To alter your preferences or leave the group, visit //www.freelists.org/list/iyonix-support Other info via //www.freelists.org/webpage/iyonix-support