Add SkipUpdate() Updater method
Allow to skip the update step and reboot to ReachView
This commit is contained in:
@ -5,6 +5,7 @@ import "context"
|
||||
const (
|
||||
eventUpdate = "update"
|
||||
eventOPKGUpdateResult = "opkg update result"
|
||||
eventSkipUpdate = "skip update"
|
||||
)
|
||||
|
||||
// UpdateStatus embeds informations about update status
|
||||
@ -26,3 +27,8 @@ func (c *Client) Update(ctx context.Context) (*UpdateStatus, error) {
|
||||
)
|
||||
return res, nil
|
||||
}
|
||||
|
||||
// SkipUpdate asks the ReachRS module to skip the update
|
||||
func (c *Client) SkipUpdate() error {
|
||||
return c.Emit(eventSkipUpdate, nil)
|
||||
}
|
||||
|
Reference in New Issue
Block a user