Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local bootUnitId = "N25Gefez"
- local serviceUnitId = "X8Y9J7SA"
- local rootId = "1fJmTiyA"
- local toStartupId = "kX1sGvz7"
- local syslibId = "z8ED7hwB"
- local turtleUnitId="6Bg1ZDv1"
- while true do
- print("install as? [bootUnit, serviceUnit, turtleUnit, root]")
- io.write("choice>")
- local input = read()
- local id
- if input == "root" then id = rootId
- elseif input == "bootUnit" then id = bootUnitId
- elseif input == "serviceUnit" then id = serviceUnitId
- elseif input == "turtleUnit" then id = turtleUnitId
- else print("invalid answer: ", input)
- end
- if id ~= nil then
- io.write("set a label? [empty is no]")
- input = read()
- if input ~= "" then
- os.setComputerLabel(input)
- end
- shell.run("mkdir", "sys")
- shell.run("cd", "sys")
- shell.run("delete", "syslib")
- shell.run("pastebin", "get", syslibId, "syslib")
- shell.run("cd", "..")
- shell.run("pastebin", "run", toStartupId, id)
- os.reboot()
- break
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement