mirror of
https://dev.iopsys.eu/bbf/icwmp.git
synced 2025-12-10 07:44:41 +01:00
Wait before exit, in case of reboot or factory reset
This commit is contained in:
parent
fd9ca76bf0
commit
2b067844c3
1 changed files with 7 additions and 1 deletions
|
|
@ -325,7 +325,9 @@ void cwmp_reboot(char *command_key)
|
|||
|
||||
blob_buf_free(&b);
|
||||
|
||||
sleep(5);
|
||||
// Wait before exit to avoid getting restarted by procd
|
||||
sleep(300);
|
||||
CWMP_LOG(ERROR, "# Problem in system restart #");
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
@ -340,6 +342,10 @@ void cwmp_factory_reset() //use the ubus rpc-sys factory
|
|||
icwmp_ubus_invoke("rpc-sys", "factory", b.head, NULL, NULL);
|
||||
|
||||
blob_buf_free(&b);
|
||||
|
||||
// Wait before exit to avoid getting restarted by procd
|
||||
sleep(300);
|
||||
CWMP_LOG(ERROR, "# Problem in system factory reset #");
|
||||
}
|
||||
|
||||
long int get_file_size(char *file_name)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue