mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2026-01-27 17:37:17 +01:00
Reboot(): Increase sleep duration after reboot calls to ensure proper system state
This commit is contained in:
parent
0448fbc7e9
commit
4e32948acc
1 changed files with 2 additions and 2 deletions
|
|
@ -30,10 +30,10 @@ static void _exec_reboot(const void *arg1, void *arg2)
|
|||
|
||||
sleep(3);
|
||||
dmubus_call_set("rpc-sys", "reboot", UBUS_ARGS{0}, 0);
|
||||
sleep(5); // Wait for reboot to happen
|
||||
sleep(30); // Wait for reboot to happen
|
||||
BBF_ERR("Reboot call failed with rpc-sys, trying again with system");
|
||||
dmubus_call_set("system", "reboot", UBUS_ARGS{0}, 0);
|
||||
sleep(5); // Wait for reboot
|
||||
sleep(30); // Wait for reboot
|
||||
BBF_ERR("Reboot call failed!!!");
|
||||
|
||||
// Set last_reboot_cause to empty because there is a problem in the system reboot
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue