Advertisement
joshgreatuk

LUAOS Installer 0.2.2 Indev

Jul 24th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.60 KB | None | 0 0
  1. local function i()
  2.   term.clear()
  3.   term.setCursorPos(1,1)
  4.   fs.makeDir("/LUAOS")
  5.   fs.makeDir("/LUAOS/S")
  6.   fs.makeDir("/LUAOS/C")
  7.   fs.makeDir("/LUAOS/S/Users")
  8.   shell.run("pastebin get 4esL7dHy /startup")
  9.   print("installation finished")
  10.   sleep(5)
  11.   os.reboot()
  12. end
  13. local function c()
  14.   term.clear()
  15.   term.setCursorPos(3,3)
  16.   print("welcome to the LUAOS installer")
  17.   print("are you sure you want to install LUAOS?")
  18.   print("Y/N")
  19.   local sEvent, param = os.pullEvent("key")
  20.   if param == 21 then
  21.     i()
  22.   else if param == 49 then
  23.     os.reboot()
  24.   else
  25.     c()
  26.   end
  27.   end
  28. end
  29. c()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement