ZealOS/src/Home/Net/Start.ZC

21 lines
576 B
HolyC
Raw Normal View History

2021-12-29 03:52:09 +00:00
2021-07-02 00:53:42 +01:00
Cd(__DIR__);;
#include "Load"
I64 retries = 5;
2022-01-17 05:28:34 +00:00
NetConfigure;
while (ipv4_globals.local_ip == 0 && retries--) // local_ip is set if NetConfigure is successful
2021-07-02 00:53:42 +01:00
{
"\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";
2021-07-02 00:53:42 +01:00
}