mirror of
https://github.com/kepler155c/opus
synced 2024-11-14 04:34:49 +00:00
18 lines
408 B
Lua
18 lines
408 B
Lua
if device.wireless_modem then
|
|
|
|
requireInjector(getfenv(1))
|
|
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
|