1
0
mirror of https://github.com/kepler155c/opus synced 2024-09-27 14:48:14 +00:00
opus/sys/services/gpshost.lua
kepler155c@gmail.com a625b52bad lint
2017-10-08 17:45:01 -04:00

18 lines
401 B
Lua

if device.wireless_modem then
_G.requireInjector()
local Config = require('config')
local config = { }
Config.load('gps', config)
if config.host and type(config.host) == 'table' then
multishell.setTitle(multishell.getCurrent(), 'GPS Daemon')
os.run(getfenv(1), '/rom/programs/gps', 'host', config.host.x, config.host.y, config.host.z)
print('GPS daemon stopped')
end
end