aboutsummaryrefslogtreecommitdiff
path: root/startup.lua
blob: ffd6a54c92fd76f2b9797cef8cb37bcc4a136525 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
local welcomeMessage = true

if fs.exists("/boot/ccboot/boot.lua") then
    if welcomeMessage == true then
    term.clear()
    term.setCursorPos(1,1)
    term.setBackgroundColor(colours.white)
    term.setTextColor(colours.black)
    print("Welcome to CCBoot!")
    sleep(1)
    term.setBackgroundColor(colours.black)
    term.setTextColor(colours.white)
    shell.run("boot/ccboot/boot.lua");
    else
    shell.run("boot/ccboot/boot.lua");
    end
else
    term.clear()
    term.setCursorPos(1,1)
    term.setTextColor(colors.red)
    print("CCBoot doesn't exist halting...")
    sleep(2)
    os.shutdown()
end