Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function opakovani ()
- term.setBackgroundColor(colors.white)
- term.setTextColor(colors.black)
- term.clear()
- term.setCursorPos(5, 7)
- print "Do you want instal Pepdroll 6 ? y/n"
- term.setCursorPos(18, 8)
- print " support /help "
- term.setBackgroundColor(colors.lightBlue)
- term.setCursorPos(23, 10)
- print " "
- term.setCursorPos(24, 10)
- opak = io.read ()
- if opak == "y" then
- instalace ()
- elseif opak == "/help" then
- term.setBackgroundColor(colors.white)
- term.setTextColor(colors.black)
- term.clear()
- term.setCursorPos(5, 7)
- term.setBackgroundColor(colors.yellow)
- term.setTextColor(colors.white)
- print " "
- term.setCursorPos(5, 8)
- print " y -> start setup "
- term.setCursorPos(5, 9)
- print " n -> start craftOS "
- term.setCursorPos(5, 10)
- print " /help -> help "
- term.setCursorPos(5, 11)
- print " Enter -> clear "
- term.setCursorPos(5, 12)
- print " "
- term.setCursorPos(5, 13)
- a = io.read ()
- if a == " " then
- opakovani ()
- else
- opakovani ()
- end
- elseif opak == "n" then
- term.setBackgroundColor(colors.black)
- term.setTextColor(colors.white)
- term.clear()
- term.setCursorPos(1, 1)
- else
- term.setCursorPos(18, 10)
- term.setBackgroundColor(colors.red)
- print "error"
- sleep (1)
- opakovani ()
- end
- end
- function instalace ()
- term.clear ()
- term.setCursorPos(10, 5)
- print " preparing instal "
- shell.run ("delete startup")
- shell.run ("pastebin get 1QjZQzuN np")
- shell.run ("pastebin get Ma4nEifC startup")
- shell.run ("pastebin get tbnzb7rH ink")
- shell.run ("pastebin get vm1p8DXs bar.nfp")
- shell.run ("pastebin get 5SdZp7V5 web")
- shell.run ("pastebin get zGtP59jJ /.core/paint")
- shell.run ("pastebin get iUxEM00P /.core/nastaveni.cfg")
- print " successful ,computer will reboot "
- sleep (1)
- os.reboot ()
- end
- opakovani ()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement