Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Script at /startup
- -- Actual boot sequence
- bootSequence = {
- {"HTTP","/boot/http" },
- {"LAN" ,"/boot/lan" },
- {"DISK","/disk/startup"},
- {"HDD" ,"/hdd/startup" },
- {"ROM" ,"/rom/startup" }
- }
- -- Program
- term.setCursorPos(1,1)
- term.clear()
- for k,d in ipairs(bootSequence) do
- name, path = d[1], d[2]
- if fs.exists(path) and not fs.isDir(path) then
- print("boot "..name)
- sleep(1)
- term.setCursorPos(1,1)
- term.clear()
- else
- print(name.." skipped")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement