Sirshark10

Bios Helper

Mar 13th, 2017
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function reload()
  2.   os.unloadAPI("UEFI")
  3.   os.loadAPI("UEFI")
  4. end
  5. function I()
  6.   UEFI.edit("/UEFI")
  7.   reload()
  8.   UEFI.boot()
  9. end
  10.  
  11. function edit(path)
  12.   os.run({},"/rom/programs/edit",path)
  13. end
  14.  
  15.  
  16. function shell.resolve(arg)
  17.   return arg
  18. end
  19.  
  20. function boot()
  21.    _G.shell = nil
  22.    os.unloadAPI("UEFI")
  23.   term.clear()
  24.   term.setCursorPos(1,1)
  25.   if term.isColor() then
  26.     os.run({},"/rom/programs/advanced/multishell")
  27.   else
  28.     os.run({},"/rom/programs/shell")
  29.   end
  30. end
  31.  
  32. _G.t = function()
  33.   _G.shell = nil
  34. end
Add Comment
Please, Sign In to add comment