diff --git a/hw.go b/hw.go index b6416e25..0a62d606 100644 --- a/hw.go +++ b/hw.go @@ -39,7 +39,7 @@ func readOtpEntropy() ([]byte, error) { //nolint:unused return content[0x17:0x1C], nil } -func hwReboot(force bool, postRebootAction *ota.PostRebootAction, delay time.Duration) error { //nolint:unused +func hwReboot(force bool, postRebootAction *ota.PostRebootAction, delay time.Duration) error { logger.Info().Msgf("Reboot requested, rebooting in %d seconds...", delay) writeJSONRPCEvent("willReboot", postRebootAction, currentSession) diff --git a/internal/ota/state.go b/internal/ota/state.go index a11a50f9..862e76a6 100644 --- a/internal/ota/state.go +++ b/internal/ota/state.go @@ -43,7 +43,7 @@ type UpdateStatus struct { // It is used to redirect the user to a specific page after a reboot type PostRebootAction struct { HealthCheck string `json:"healthCheck"` // The health check URL to call after the reboot - RedirectUrl string `json:"redirectUrl"` // The URL to redirect to after the reboot + RedirectTo string `json:"redirectTo"` // The URL to redirect to after the reboot } // componentUpdateStatus represents the status of a component update