Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local id = os.getComputerID()
- shell.run("clear")
- print("Starting value?")
- local begin = tonumber(read())
- print("Ending value?")
- local stop = tonumber(read())
- print("Monitor number?")
- local monitor = tonumber(read())
- function fwrite(path, text)
- local file = assert(io.open(path, "a"))
- file:write(text.."\n")
- file:close()
- end
- fs.delete(id.."/")
- fwrite(id.."/config", "Beginning at: "..begin)
- fwrite(id.."/config", "Ending at: "..stop)
- fwrite(id.."/config", "Monitor: " ..monitor)
- fs.delete("startup")
- shell.run("pastebin", "get", "eTGnUD84", "startup")
- os.reboot()
Add Comment
Please, Sign In to add comment