2018-01-11 20:53:32 -05:00
|
|
|
if _G.device.wireless_modem then
|
2016-12-11 14:24:52 -05:00
|
|
|
|
2018-01-24 17:39:38 -05:00
|
|
|
_G.requireInjector(_ENV)
|
|
|
|
local Config = require('config')
|
2016-12-11 14:24:52 -05:00
|
|
|
|
2018-01-24 17:39:38 -05:00
|
|
|
local kernel = _G.kernel
|
2016-12-11 14:24:52 -05:00
|
|
|
|
2018-01-24 17:39:38 -05:00
|
|
|
local config = { }
|
|
|
|
Config.load('gps', config)
|
|
|
|
|
|
|
|
if config.host and type(config.host) == 'table' then
|
|
|
|
kernel.run({
|
|
|
|
title = 'GPS Daemon',
|
|
|
|
hidden = true,
|
|
|
|
path = '/rom/programs/gps',
|
|
|
|
args = { 'host', config.host.x, config.host.y, config.host.z },
|
|
|
|
})
|
|
|
|
end
|
2016-12-11 14:24:52 -05:00
|
|
|
end
|