1
0
mirror of https://github.com/kepler155c/opus synced 2025-10-20 10:17:39 +00:00

better startup

This commit is contained in:
kepler155c@gmail.com
2017-09-26 01:40:02 -04:00
parent 1c3e4917da
commit 2d93974e6a
5 changed files with 48 additions and 29 deletions

View File

@@ -1,6 +1,6 @@
local Opus = { }
local function runDir(directory, desc, open)
local function runDir(directory, open)
if not fs.exists(directory) then
return true
end
@@ -37,18 +37,13 @@ local function runDir(directory, desc, open)
return success
end
function Opus.loadExtensions()
--return runDir('sys/extensions', '[ ext ] ', shell.run)
return true
end
function Opus.loadServices()
return runDir('sys/services', '[ svc ] ', shell.openHiddenTab)
return runDir('sys/services', shell.openHiddenTab)
end
function Opus.autorun()
local s = runDir('sys/autorun', '[ aut ] ', shell.run)
return runDir('usr/autorun', '[ aut ] ', shell.run) and s
local s = runDir('sys/autorun', shell.run)
return runDir('usr/autorun', shell.run) and s
end
return Opus