Add resource loading as part of DFU

This commit is contained in:
2022-10-16 13:17:12 -07:00
parent 2d0db1dcf1
commit f639fef992
3 changed files with 26 additions and 3 deletions

View File

@@ -11,6 +11,19 @@ import (
)
func fwUpgrade(c *cli.Context) error {
resources := c.String("resources")
if resources != "" {
absRes, err := filepath.Abs(resources)
if err != nil {
return err
}
err = resLoad(c.Context, []string{absRes})
if err != nil {
return err
}
}
start := time.Now()
var upgType api.UpgradeType