Daniel_Kerman

LOSInstaller

Dec 13th, 2015
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.82 KB | None | 0 0
  1.     -- File Manager --
  2.    
  3.     if fs.exists("lokiOS/")==true then shell.run("rm lokiOS/") end
  4.     sleep(0.0)
  5.     if fs.exists("startup")==true then shell.run("rm startup") end
  6.     sleep(0.0)
  7.     fs.makeDir("lokiOS/files/os")
  8.     sleep(0.0)
  9.     fs.makeDir("lokiOS/files/user")
  10.     sleep(0.0)
  11.     fs.makeDir("lokiOS/files/osAppData")
  12.     sleep(0.0)
  13.     fs.makeDir("lokiOS/files/os/apis")
  14.     sleep(0.0)
  15.     term.clear()
  16.     term.setCursorPos(1,1)
  17.    
  18.     -- DOWNLOADING FILES --
  19.    
  20.     shell.run("pastebin get bWqY6bhr lokiOS/files/os/apis/lapi");
  21.     shell.run("pastebin get aPZUprhk startup");
  22.     shell.run("pastebin get PKLQ63CE lokiOS/files/os/main");
  23.    
  24.     -- Finish --
  25.    
  26.     os.loadAPI("lokiOS/files/os/apis/lapi")
  27.     lapi.clean(lapi.getCenter("x",11),lapi.getCenter("y",0));
  28.     textutils.slowWrite("Installation Successful",46);
  29.     sleep(0.75);
  30.     lapi.clean();
  31.     os.reboot();
Advertisement
Add Comment
Please, Sign In to add comment