Guest User

installer

a guest
Apr 21st, 2016
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.32 KB | None | 0 0
  1. --Variables
  2. OSMaker = "DubbelINC"
  3. OSName = "BlueNet"
  4. version = "1.1"
  5. --Functions
  6.  
  7. startupfile = function()
  8.   term.clear()
  9.   term.setCursorPos(1,1)
  10.   term.setTextColor(colors.blue)
  11.   print(""..OSName.." "..version.." ")
  12.   term.setCursorPos(47,1)
  13.   term.setTextColor(colors.yellow)
  14.   sleep(00.4)
  15.  
  16.   print("ID: "..computerid.."")
  17.   term.setCursorPos(46,2)
  18.   print("64 Bit")
  19.   term.setCursorPos(1,2)
  20.   term.setTextColor(colors.red)
  21.   print("                 Programs: ")
  22.   term.setTextColor(colors.lime)
  23.   sleep(00.3)
  24.   term.setCursorPos(1,3)
  25.   shell.run("programs")
  26.   sleep(00.3)
  27.   term.setCursorPos(15,16)
  28.   term.setTextColor(colors.blue)
  29.   print("Loading options...")
  30.   sleep(2)
  31.   biosmenu()
  32. end
  33.  
  34. biosmenu = function()
  35.   term.setBackgroundColor(colors.black)
  36.   term.clear()
  37.   term.setCursorPos(1,1)
  38.   term.setTextColor(colors.blue)
  39.   print(""..OSName.." "..version.."")
  40.   print()
  41.   print()
  42.   print("[R] Run "..OSName.."")
  43.   print("[U] Update")
  44.   print("[I] Uninstall")
  45.   local event, key = os.pullEvent("key")
  46.   if key == keys.r then
  47.    shell.run("BlueNet/loading")
  48.   end
  49.   if key == keys.u then
  50.    shell.run("BlueNet/update")
  51.   end
  52.   if key == keys.i then
  53.    shell.run("BlueNet/uninstall")
  54.   else
  55.    biosmenu()
  56.   end  
  57. end
  58.  
  59. --Loading
  60.   computerid = os.getComputerID()
  61. --Startup
  62. startupfile()
Advertisement
Add Comment
Please, Sign In to add comment