autoupdater: exit when the image name is not defined for a hardware model
This commit is contained in:
parent
f36a58e77d
commit
c1068fef42
|
@ -11,6 +11,12 @@ local autoupdater_util = require('autoupdater.util')
|
||||||
local autoupdater_version = require('autoupdater.version')
|
local autoupdater_version = require('autoupdater.version')
|
||||||
|
|
||||||
|
|
||||||
|
if not platform_info.get_image_name() then
|
||||||
|
io.stderr:write("The autoupdater doesn't support this hardware model.\n")
|
||||||
|
os.exit(1)
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
autoupdater_util.randomseed()
|
autoupdater_util.randomseed()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue