mgmt: hawkbit: option for cold reboot
add option for cold reboot. Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
This commit is contained in:
parent
e29baf5da3
commit
f9819dc010
|
@ -145,6 +145,22 @@ config HAWKBIT_STATIC_CERT_TAG
|
|||
|
||||
endif
|
||||
|
||||
choice HAWKBIT_REBOOT_MODE
|
||||
prompt "Reboot mode after update"
|
||||
default HAWKBIT_REBOOT_WARM
|
||||
|
||||
config HAWKBIT_REBOOT_WARM
|
||||
bool "Warm reboot after update"
|
||||
help
|
||||
Do a warm reboot after the update.
|
||||
|
||||
config HAWKBIT_REBOOT_COLD
|
||||
bool "Cold reboot after update"
|
||||
help
|
||||
Do a cold reboot after the update.
|
||||
|
||||
endchoice
|
||||
|
||||
module = HAWKBIT
|
||||
module-str = Log Level for hawkbit
|
||||
module-help = Enables logging for hawkBit code.
|
||||
|
|
|
@ -1190,7 +1190,7 @@ static bool send_request(enum http_method method, enum hawkbit_http_request type
|
|||
void hawkbit_reboot(void)
|
||||
{
|
||||
LOG_PANIC();
|
||||
sys_reboot(SYS_REBOOT_WARM);
|
||||
sys_reboot(IS_ENABLED(CONFIG_HAWKBIT_REBOOT_COLD) ? SYS_REBOOT_COLD : SYS_REBOOT_WARM);
|
||||
}
|
||||
|
||||
static bool check_hawkbit_server(void)
|
||||
|
|
Loading…
Reference in New Issue