2016-12-11 19:24:52 +00:00
|
|
|
if device.wireless_modem then
|
|
|
|
|
2017-10-08 21:45:01 +00:00
|
|
|
_G.requireInjector()
|
2016-12-11 19:24:52 +00:00
|
|
|
local Config = require('config')
|
|
|
|
|
2017-09-13 03:04:44 +00:00
|
|
|
local config = { }
|
2016-12-11 19:24:52 +00:00
|
|
|
Config.load('gps', config)
|
|
|
|
|
2017-09-14 00:02:26 +00:00
|
|
|
if config.host and type(config.host) == 'table' then
|
2016-12-11 19:24:52 +00:00
|
|
|
|
|
|
|
multishell.setTitle(multishell.getCurrent(), 'GPS Daemon')
|
|
|
|
|
2017-09-13 03:04:44 +00:00
|
|
|
os.run(getfenv(1), '/rom/programs/gps', 'host', config.host.x, config.host.y, config.host.z)
|
2016-12-11 19:24:52 +00:00
|
|
|
|
|
|
|
print('GPS daemon stopped')
|
|
|
|
end
|
|
|
|
end
|