lua-platform-info: brcm2708: add sysupgrade support
This commit is contained in:
parent
7d11ce79ed
commit
5f0c86212d
|
@ -33,5 +33,5 @@ end
|
||||||
|
|
||||||
-- The image name for sysupgrades
|
-- The image name for sysupgrades
|
||||||
function get_image_name()
|
function get_image_name()
|
||||||
return nil
|
return (model:lower():gsub('[^%w%.%+]+', '-'):gsub('%.+', '.'):gsub('[%-%.]*%-[%-%.]*', '-'):gsub('%-+$', ''))
|
||||||
end
|
end
|
||||||
|
|
|
@ -33,5 +33,5 @@ end
|
||||||
|
|
||||||
-- The image name for sysupgrades
|
-- The image name for sysupgrades
|
||||||
function get_image_name()
|
function get_image_name()
|
||||||
return nil
|
return (model:lower():gsub('[^%w%.%+]+', '-'):gsub('%.+', '.'):gsub('[%-%.]*%-[%-%.]*', '-'):gsub('%-+$', ''))
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue