FoxOS

startup

Mar 6th, 2021 (edited)
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.76 KB | None | 0 0
  1. -- APT / WGet per computer a 32 e 64 Bit
  2. term.clear()
  3. term.setCursorPos(20, 2)
  4. print("WGet - APT")
  5. if fs.exists("prg/install") == false then
  6.    shell.run("pastebin get code prg/wiew")
  7. end
  8.  
  9. if fs.exists("prg/wiew") == false then
  10.    shell.run("pastebin get code prg/wiew")
  11. end
  12.  
  13. if fs.exists("prg/update") == false then
  14.    shell.run("pastebin get code prg/update")
  15. end
  16.  
  17. print("\n\n[I] Per Installare un pacchetto\n[V] Per visualizzare i pacchetti presenti\n[A] Aggiorna la lista dei pacchetti")
  18. local event, key = os.pullEvent(key)
  19. local tasto = keys.getName("key")
  20. if tasto == "i" then
  21.    shell.run("prg/install")
  22. elseif tasto == "v" then
  23.    shell.run("prg/view")
  24. elseif tasto = "a" then
  25.    shell.run("prg/update")
  26. else
  27.    shell.run("startup")
  28. end
  29.  
Add Comment
Please, Sign In to add comment