@nbache
Quote:
This is the reason there is a Network-Startup script: To start stuff that wants a network.
It doesn't work that well, though.
The network-startup "script" in it's original form does nothing else than
Quote:
AddNetInterface QUIET DEVS:NetInterfaces/~(#?.info)
wait for the network driver to be loaded, but *not* for the network to be *up*.
You can check that with any script that access a website.
e.g. i'm starting three arexx scripts in my network-startup *after* the above line, all of them either access a website or an address on my local home network.
While latter works, the website wasn't reachable in 3 out of 10 cases and eventually stalled the whole boot process where either the mouse was in busy state forever, i couldn't access certain directories, programs would not start, etc. (believe me, i was furiously searching for the bug in my script until i planted some debug output and realized it was locking up due to not being able to access the site in the first place).
What i did, and what fixed *all* of my startup problems (except the occasional machine exceptions coming from the gfx board, was to add a failsafe to one of my scripts *right* after th above line.
/*
Checking for up and running network.
*/
v_network=0
v_network_retries=0
DO WHILE v_network=0
ADDRESS COMMAND 'ping -q -c 3 192.168.178.1 >T:boot_ping.log'
OPEN(pl,'T:boot_ping.log','R')
DO WHILE ~EOF(pl)
v_ping=READLN(pl)
IF INDEX(v_ping,'loss')>0 THEN DO
v_loss=COMPRESS(SUBWORD(v_ping,7,1),'%')
LEAVE
END
END
CLOSE(pl)
IF v_network_retries>2 THEN DO
ADDRESS COMMAND 'SAY ERROR: could not connect'
IF EXISTS('T:boot_ping.log') THEN
ADDRESS COMMAND 'delete quiet T:boot_ping.log'
EXIT 0
END
IF v_loss=0 THEN
v_network=1
ADDRESS COMMAND 'wait 1'
END
This checks and keeps the scripts from starting unless the internet is *really* accessable.
Time loss is 10 seconds at most, 4 seconds normally (but it's not feelable since the system is not yet up for usage after this short amount of time anyway).
After three unsuccessful tries it stops, exits the scripts and gives control back to the system.
As i said, after planting this, i *never* had a WB boot stalling ever again.
...and i faintly remember i told that on the Hyperion forums now too...ah well
