lua-platform-info: brcm2708: add sysupgrade support

This commit is contained in:
Matthias Schiffer 2015-07-15 22:03:56 +02:00
parent 7d11ce79ed
commit 5f0c86212d
2 changed files with 2 additions and 2 deletions

View File

@ -33,5 +33,5 @@ end
-- The image name for sysupgrades
function get_image_name()
return nil
return (model:lower():gsub('[^%w%.%+]+', '-'):gsub('%.+', '.'):gsub('[%-%.]*%-[%-%.]*', '-'):gsub('%-+$', ''))
end

View File

@ -33,5 +33,5 @@ end
-- The image name for sysupgrades
function get_image_name()
return nil
return (model:lower():gsub('[^%w%.%+]+', '-'):gsub('%.+', '.'):gsub('[%-%.]*%-[%-%.]*', '-'):gsub('%-+$', ''))
end