Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- shell.run("eject left")
- shell.run("eject top")
- shell.run("eject bottom")
- shell.run("eject back")
- shell.run("eject right")
- shell.run("eject front")
- term.clear()
- term.setCursorPos(1,1)
- print("Safe Boot CHIP DAC Initializing...\n")
- sleep(2)
- term.clear()
- print("Safe Boot CHIP DAC Initilized\n")
- sleep(0.3)
- term.clear()
- local w, h = term.getSize()
- term.setCursorPos(math.floor(w-string.len("Booting in Safe Mode........."))/2, 2)
- textutils.slowPrint("Booting in Safe Mode...............", 8)
- sleep(1.3)
- term.clear()
- if fs.exists("startup") then
- fs.move("startup", "startup_old")
- end
- term.setCursorPos(math.floor(w-string.len("Safely Booted"))/2, 2)
- textutils.slowPrint("Safely Booted", 15)
- sleep(0.3)
- term.clear()
- term.setCursorPos(math.floor(w-string.len("Thanks for using this"))/2, 2)
- textutils.slowPrint("Thanks for using this!", 17)
- sleep(0.2)
- term.clear()
- write("Safe Boot Log:\n")
- local osvern = os.version()
- local complbl = os.getComputerLabel()
- local compid = os.getComputerID()
- if complbl == nil then
- complbl = "Un-Set"
- end
- if compid == nil then
- compid = "Unknown"
- end
- if osvern == nil then
- osvern = "Unknown"
- end
- write("Operating System: "..osvern.. "\n")
- write("Computer Label: "..complbl.. "\n")
- write("Computer ID: " ..compid.. "\n")
- if fs.exists("startup_old") then
- fs.move("startup_old", "startup")
- end
Add Comment
Please, Sign In to add comment