Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --this script runs all the Boot files in order in the Boot file
- version = "1.0.0"
- local file = fs.open(".Boot_BootFile","r")
- local Tasks = file.readAll
- file.close()
- local Scripts = fs.open(".OS_SystemFiles","r")
- local MenuScript = Scripts.readLine(4)
- Scripts.close()
- local function TaskRunner()
- term.clear()
- term.setCursorPos(1,1)
- print("BOOT SYSTEM")
- print("////////////////////////")
- for i=1, #Tasks do
- print("starting "..Tasks[i])
- shell.run(Tasks[i])
- print(Tasks[i].." Completed")
- end
- end
- parellel.waitForAll(TaskRunner)
- shell.run(MenuScript)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement