Advertisement
Alakazard12

kernel

Sep 17th, 2014
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. local env = {
  2. _VERSION = _VERSION;
  3. assert = asset;
  4. getfenv = getfenv;
  5. setfenv = setfenv;
  6. bit = bit;
  7. rawset = rawset;
  8. tonumber = tonumber;
  9. tostring = tostring;
  10. loadstring = loadstring;
  11. error = error;
  12. type = type;
  13. coroutine = coroutine;
  14. next = next;
  15. unpack = unpack;
  16. pcall = pcall;
  17. sleep = sleep;
  18. loadfile = loadfile;
  19. math = math;
  20. pairs = pairs;
  21. rawget = rawget;
  22. _G = env;
  23. ipairs = ipairs;
  24. xpcall = xpcall;
  25. io = io;
  26. rawequal = rawequal;
  27. http = http;
  28. string = string;
  29. setmetatable = setmetatable;
  30. print = print;
  31. getmetatable = getmetatable;
  32. table = table;
  33. dofile = dofile;
  34. select = select;
  35. term = term;
  36. }
  37.  
  38. env.fs = {}
  39. for i,v in pairs(fs) do
  40. env.fs[i] = v
  41. end
  42.  
  43. shell.exit()
  44. local func = loadfile("/rom/startup")
  45. setfenv(func, env)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement