2015-01-25 04:16:58 +01:00
|
|
|
local model
|
|
|
|
|
|
|
|
for line in io.lines('/proc/cpuinfo') do
|
|
|
|
model = line:match('^model name%s*:%s*(.+)$')
|
|
|
|
if model then
|
|
|
|
break
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
2014-09-09 17:30:45 +02:00
|
|
|
module 'platform_info'
|
|
|
|
|
|
|
|
|
|
|
|
-- The OpenWrt target
|
|
|
|
function get_target()
|
|
|
|
return 'x86'
|
|
|
|
end
|
|
|
|
|
|
|
|
-- The OpenWrt subtarget or nil
|
|
|
|
function get_subtarget()
|
|
|
|
return 'generic'
|
|
|
|
end
|
|
|
|
|
|
|
|
-- The board name
|
|
|
|
function get_board_name()
|
|
|
|
return nil
|
|
|
|
end
|
|
|
|
|
|
|
|
-- The model name
|
|
|
|
function get_model()
|
2015-01-25 04:16:58 +01:00
|
|
|
return model
|
2014-09-09 17:30:45 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
-- The image name for sysupgrades
|
|
|
|
function get_image_name()
|
|
|
|
return nil
|
|
|
|
end
|