mirror of
https://github.com/kepler155c/opus
synced 2025-11-02 00:23:00 +00:00
transition to kernel
This commit is contained in:
14
sys/autorun/gpshost.lua
Normal file
14
sys/autorun/gpshost.lua
Normal file
@@ -0,0 +1,14 @@
|
||||
if _G.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
|
||||
_ENV._APP_TITLE = 'GPS Daemon'
|
||||
os.run(_ENV, '/rom/programs/gps', 'host', config.host.x, config.host.y, config.host.z)
|
||||
print('GPS daemon stopped')
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user