aboutsummaryrefslogtreecommitdiff
path: root/startup.lua
blob: 81b8daa9499c235f4fe42f4b1309c8b50fce1a84 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
if fs.exists("/boot/ccboot/boot.lua") 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
    term.clear()
    term.setCursorPos(1,1)
    term.setTextColor(colors.red)
    print("CCBoot doesn't exist halting...")
    sleep(2)
    os.shutdown()
end