1
0
mirror of https://github.com/kepler155c/opus synced 2024-11-15 21:24:49 +00:00
opus/sys/services/gpshost.lua

18 lines
375 B
Lua
Raw Normal View History

2016-12-11 19:24:52 +00:00
if device.wireless_modem then
requireInjector(getfenv(1))
2016-12-11 19:24:52 +00:00
local Config = require('config')
local config = { }
2016-12-11 19:24:52 +00:00
Config.load('gps', config)
if config.host then
multishell.setTitle(multishell.getCurrent(), 'GPS Daemon')
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