-
Notifications
You must be signed in to change notification settings - Fork 0
/
startup.lua
39 lines (39 loc) · 1.01 KB
/
startup.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
_G.at = os.pullEvent
os.pullEvent = os.pullEventRaw
settings.load("/.settings")
--_G.logm = peripheral.find("monitor")
--logm.write("Loading menu API\n")
os.loadAPI("/system/menu")
function _G.bootAnim()
term.setBackgroundColor(colors.black)
term.clear()
term.setCursorPos(1,1)
local w,h = term.getSize()
menu.center("Cbox",h/2,colors.lime)
sleep(2)
bootAnimB()
end
function _G.bootAnimB()
term.setBackgroundColor(colors.black)
term.clear()
term.setCursorPos(1,1)
local w,h = term.getSize()
menu.center("Cbox",h/2,colors.lime)
menu.center("Goldcore",h,colors.white)
sleep(2)
end
bootAnim()
os.loadAPI("/system/apis/save.lua")
os.loadAPI("/system/apis/dlp.lua")
os.loadAPI("/system/apis/threed.lua")
--os.loadAPI("/system/rsa")
--logm.write("Starting Dashboard\n")
function os.version()
return "CBox"
end
if not (settings.get("setup.done") == true) then
shell.run("/system/apps/200001/main.lua")
end
shell.run("/system/apps/200000/main.lua")
shell.run("/system/crash.lua 000-200000")
os.reboot()