Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shell.run("clear")
- print("Bitte wähle ein Produkt:\n\n")
- write("1 - 111\n")
- write("2 - 222\n")
- write("3 - 333\n")
- write("4 - 444\n\n")
- write("Auswahl:")
- auswahl1=io.read()
- if auswahl1=="1" then
- shell.run("clear")
- print("Produkt 1 ausgewählt, waehle Aktion aus:\n")
- write("1 - EINschalten\n")
- write("2 - AUSschalten\n\n")
- write("Auswahl:")
- auswahl2=io.read()
- if auswahl2=="1" then
- shell.run("clear")
- print("EINgeschaltet")
- sleep(3)
- shell.run("reboot")
- end
- if auswahl2=="2" then
- shell.run("clear")
- print("AUSgeschaltet")
- sleep(3)
- shell.run("reboot")
- end
- elseif
- shell.run("clear") then
- write("ungueltige Auswahl - starte neu !")
- sleep(3)
- shell.run("reboot")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement