ZealOS/src/Home/Net/Start.ZC
2022-01-17 00:28:34 -05:00

20 lines
576 B
HolyC
Executable file

Cd(__DIR__);;
#include "Load"
I64 retries = 5;
NetConfigure;
while (ipv4_globals.local_ip == 0 && retries--) // local_ip is set if NetConfigure is successful
{
"\nNetConfigure unsuccessful. Retrying...\n";
NetConfigure;
}
if (ipv4_globals.local_ip == 0)
"\nNetConfigure unsuccessful. See Network Log for details.\n\n";
else
"\nNetConfigure successful!\n\n";
NetRep;
if (ipv4_globals.local_ip != 0 && Fs != sys_task)
{
"\nNow run one of the $MA,"Programs",LM="Cd(\"C:/Home/Net/Programs\");Dir;\n"$.\n";
"\nIf anything crashes to Debug, try typing $FG,0$G2;$FG$\n\n";
}