mirror of
https://dev.iopsys.eu/bbf/icwmp.git
synced 2025-12-10 07:44:41 +01:00
Download: test if there's no fault in firmware upgrade before the sleep
This commit is contained in:
parent
7c91fd390b
commit
9875bccfae
1 changed files with 5 additions and 2 deletions
|
|
@ -262,9 +262,12 @@ int apply_downloaded_file(struct cwmp *cwmp, struct download *pdownload, struct
|
|||
cwmp_commit_package("cwmp", UCI_STANDARD_CONFIG);
|
||||
if (cwmp_apply_firmware() != 0)
|
||||
error = FAULT_CPE_DOWNLOAD_FAIL_FILE_CORRUPTED;
|
||||
sleep(70);
|
||||
if (error == FAULT_CPE_NO_FAULT)
|
||||
|
||||
if (error == FAULT_CPE_NO_FAULT) {
|
||||
sleep(70);
|
||||
error = FAULT_CPE_DOWNLOAD_FAIL_FILE_CORRUPTED;
|
||||
}
|
||||
|
||||
} else if (strcmp(pdownload->file_type, WEB_CONTENT_FILE_TYPE) == 0) {
|
||||
//TODO Not Supported
|
||||
error = FAULT_CPE_NO_FAULT;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue