-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#535 updates to configurator launcher
- Loading branch information
1 parent
459ddba
commit 764638c
Showing
1 changed file
with
9 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
print("CONFIGURE> SCANNING FOR CONFIGURATOR...") | ||
|
||
if fs.exists("reactor-plc/configure.lua") then require("reactor-plc.configure").configure() | ||
elseif fs.exists("rtu/configure.lua") then require("rtu.configure").configure() | ||
elseif fs.exists("supervisor/configure.lua") then require("supervisor.configure").configure() | ||
elseif fs.exists("coordinator/configure.lua") then require("coordinator.configure").configure() | ||
elseif fs.exists("pocket/configure.lua") then require("pocket.configure").configure() | ||
else | ||
print("CONFIGURE> NO CONFIGURATOR FOUND") | ||
print("CONFIGURE> EXIT") | ||
for _, app in ipairs({ "reactor-plc", "rtu", "supervisor", "coordinator", "pocket" }) do | ||
if fs.exists(app .. "/configure.lua") then | ||
local _, _, launch = require(app .. ".configure").configure() | ||
if launch then shell.execute("/startup") end | ||
return | ||
end | ||
end | ||
|
||
print("CONFIGURE> NO CONFIGURATOR FOUND") | ||
print("CONFIGURE> EXIT") |