Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Installationsprogramm des Reaktor- und Turbinenprogramms von Thor_s_Crafter --
- -- Hinweis: Das Benutzung des Programms geschieht auf eigene Gefahr des Nutzers. --
- -- Version 1.0 (beta)
- term.clear()
- term.setCursorPos(1,1)
- print("-- Installationsprogramm des Reaktor- und Turbinenprogramms von Thor_s_Crafter --")
- print("-- Version 1.0 (beta) --")
- print()
- print("HINWEIS: Das Benutzung des Programms geschieht auf eigene Gefahr.")
- print()
- print("Es wird empfohlen den Computer zu labeln.")
- if not fs.exists("turbineControl") then
- out = true
- while out do
- write("Computer labeln? (j/n): ")
- input = read()
- if input == "j" then
- shell.run("label set \"TurbineComputer\"")
- print("ComputerLabel auf \"TurbineComputer\" gesetzt.")
- out = false
- end
- if input == "n" then
- print("ComputerLabel wurde nicht gesetzt.")
- out = false
- else
- print("Ungueltige Eingabe.")
- end
- end
- else
- print("Update Programm...")
- end
- sleep(1)
- term.clear()
- term.setCursorPos(1,1)
- print("Checke auf vorhandene Programme...")
- if fs.exists("button") then
- shell.run("delete button")
- print("Button geloescht.")
- end
- if fs.exists("turbineControl") then
- shell.run("delete turbineControl")
- print("turbineControl geloescht.")
- end
- print("Lade Button-Programm...")
- shell.run("pastebin get pDtimDT2 button")
- print("Lade Reaktor-Programm...")
- shell.run("pastebin get 8ib4JesQ turbineControl")
- print("Download abgeschlossen.")
- print()
- sleep(1)
- term.clear()
- term.setCursorPos(1,1)
- if not fs.exists("startup") then
- out2 = true
- while out2 do
- print("Startup hinzufuegen? (j/n): ")
- input = read()
- if input == "j" then
- local file = fs.open("startup","w")
- file.writeLine("shell.run(\"turbineControl\")")
- file.close()
- print("Startup wurde installiert.")
- out2 = false
- end
- if input == "n" then
- print("Startup wurde nicht installiert.")
- out2 = false
- else
- print("Ungueltige Eingabe.")
- end
- end
- end
- print()
- print("-- Installation abgeschlossen. --")
- print()
- term.setTextColor(colors.yellow)
- print("Reboote...")
- sleep(1)
- os.reboot()
Add Comment
Please, Sign In to add comment