Compare commits

...

2 commits

Author SHA1 Message Date
Vivek Kumar Dutta
70ca07fbc2
Fix compilation 2025-12-03 14:57:48 +05:30
Vivek Kumar Dutta
158bf8fbb5
Updated logs in reboot method 2025-12-03 14:53:04 +05:30

View file

@ -214,13 +214,16 @@ static void _exec_reboot(const void *arg1, void *arg2)
sleep(3);
dmubus_call_blocking("system", "reboot", UBUS_ARGS{0}, 0, NULL);
sleep(15); // Wait for reboot
BBFDM_ERR("Reboot call failed with system, trying again with reboot rpc-sys...");
BBFDM_INFO("Reboot call failed with system, trying again with reboot rpc-sys...");
dmubus_call_blocking("rpc-sys", "reboot", UBUS_ARGS{0}, 0, NULL);
sleep(15); // Wait for reboot to happen
BBFDM_ERR("Reboot call failed with rpc-sys, trying again with reboot cmd ...");
BBFDM_WARNING("Reboot call failed with rpc-sys, trying again with reboot cmd ...");
run_cmd("reboot", NULL, 0);
sleep(15); // Wait for reboot
BBFDM_ERR("Reboot call failed!!!");
BBFDM_ERR("Reboot calls failed, trying hard reboot!!!");
run_cmd("reboot -f", NULL, 0);
sleep(15); // Wait for reboot
BBFDM_ERR("### Tried all reboot methods, nothing worked .....");
// Set last_reboot_cause to empty because there is a problem in the system reboot
dmuci_set_value(config_name, "reboots", "last_reboot_cause", "");