Advertisement
joshgreatuk

LUAOS Installer 0.1 indev

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