|
@@ -14614,6 +14614,7 @@ int httpDownLoadFile(char *location, char *path, char *filename,char *url)
|
|
|
//DEBUG_INFO("filename=%s\n",filename);
|
|
|
//DEBUG_INFO("url=%s\n",url);
|
|
|
sprintf(FilePath,"/mnt/%s",filename);
|
|
|
+ system("ping 8.8.8.8 &");
|
|
|
|
|
|
if((access(FilePath,F_OK))!=-1)
|
|
|
{
|
|
@@ -14632,6 +14633,7 @@ int httpDownLoadFile(char *location, char *path, char *filename,char *url)
|
|
|
DEBUG_INFO("http DownLoad error!\n");
|
|
|
return FALSE;
|
|
|
}
|
|
|
+ system("pkill ping");
|
|
|
|
|
|
return TRUE;
|
|
|
}
|
|
@@ -14644,6 +14646,7 @@ int ftpDownLoadFile(char *location, char *user, char *password, int port, char *
|
|
|
int systemresult;
|
|
|
//char temp[100];
|
|
|
sprintf(FilePath,"/mnt/%s",filename);
|
|
|
+ system("ping 8.8.8.8 &");
|
|
|
|
|
|
if((access(FilePath,F_OK))!=-1)
|
|
|
{
|
|
@@ -14667,6 +14670,7 @@ int ftpDownLoadFile(char *location, char *user, char *password, int port, char *
|
|
|
return FALSE;
|
|
|
}
|
|
|
|
|
|
+ system("pkill ping");
|
|
|
return TRUE;
|
|
|
|
|
|
}
|