1
0
mirror of https://github.com/kepler155c/opus synced 2024-12-28 17:40:26 +00:00
opus/sys/autorun/gpshost.lua

20 lines
400 B
Lua
Raw Normal View History

2018-01-12 01:53:32 +00:00
if _G.device.wireless_modem then
2016-12-11 19:24:52 +00:00
2018-01-24 22:39:38 +00:00
_G.requireInjector(_ENV)
local Config = require('config')
2016-12-11 19:24:52 +00:00
2018-01-24 22:39:38 +00:00
local kernel = _G.kernel
2016-12-11 19:24:52 +00:00
2018-01-24 22:39:38 +00: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 19:24:52 +00:00
end