Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function MountAPI()
- local List = fs.list("API")
- for i = 1, #List do
- os.loadAPI(fs.combine("API",List[i]),List[i])
- print("-"..List[i].." mounted")
- end
- end
- term.clear()
- term.setCursorPos(1,1)
- print("==WST=Consumer=Operating=System==")
- print("1. Checking for API folder . . .")
- if fs.exists("API") then print("-folder found, mounting files . . .") MountAPI() else print("-folder missing") end
- print("2. Starting Main.lua")
- if fs.exists("Main.lua") then print("-ready") shell.run("Main.lua") else print("-file missing") end
- print("3. OS stopped, shutting down in 10 seconds")
- os.sleep(10)
- os.shutdown ()
Advertisement
Add Comment
Please, Sign In to add comment