SHARE
TWEET

SimSoft 3.1 - SystemUpdate

Simlor_GER May 16th, 2016 (edited) 609 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --Alle Rechte an SimSoft 3 sind "SimlorLP" (oder in Minecraft auch nur "Simlor") vorbehalten.
  2.  
  3. BC(128)
  4. Clear()
  5.  
  6. SimSoftBalken("SimSoft 3 - OS update", 21)
  7.  
  8. TC(1)
  9. BC(128)
  10. CP(4,5)
  11. print("Update console")
  12.  
  13. TC(256)
  14.  
  15. --Version des eigenen OS
  16. CP(2,7)
  17. file = fs.open("SimSoft/Daten/Config","r")
  18. local fileData = {}
  19. local line = file.readLine()
  20. repeat
  21. table.insert(fileData,line)
  22. line = file.readLine()
  23. until line == nil
  24. file.close()
  25.  
  26. SS2V = fileData[3]
  27.  
  28. print("Clint os version: "..SS2V)
  29.  
  30. --Update Datei wird geladen
  31. CP(2,8)
  32. print("Load update details")
  33.  
  34. local datei = http.get("http://pastebin.com/raw/LZch2Xnt")
  35. datei = datei.readAll()
  36.  
  37. local file = fs.open("SimSoft/Daten/UpdateCheck/S","w")
  38. file.writeLine(datei)
  39. file.close()
  40.  
  41. CP(2,9)
  42. TC(256)
  43.  
  44. file = fs.open("SimSoft/Daten/UpdateCheck/S","r")
  45. local fileData = {}
  46. local line = file.readLine()
  47. repeat
  48. table.insert(fileData,line)
  49. line = file.readLine()
  50. until line == nil
  51. file.close()
  52.  
  53. v = fileData[1]
  54.  
  55. if v == SS2V then
  56.  print("The latest version is already")
  57.  CP(2,10)
  58.  print("installed")
  59.  TC(1)
  60.  CP(2,11)
  61.  print("Please wait...")
  62.  sleep(4)
  63.  fs.delete("SimSoft/Daten/UpdateCheck/S")
  64.  print(" System reboot...")
  65.  sleep(0.2)
  66.  os.reboot()
  67. else
  68.  print("Updates are installed...")
  69.  sleep(2)
  70.  BC(32768)
  71.  TC(1)
  72.  Clear()
  73.  print("SimSoft 3.1 Update Console 2b")
  74.  
  75.  a = 1
  76.  
  77.  while true do
  78.   a = (a+3)
  79.   v = fileData[a]
  80.  
  81.   if v == SS2V then
  82.    break
  83.   end
  84.  end
  85.  
  86.  a = (a+1)
  87.  l = fileData[a]
  88.  
  89.  local datei = http.get("http://pastebin.com/raw/"..l)
  90.  datei = datei.readAll()
  91.  
  92.  local file = fs.open("SimSoft/Daten/UpdateCheck/version","w")
  93.  file.writeLine(datei)
  94.  file.close()
  95.  
  96.  shell.run("SimSoft/Daten/UpdateCheck/version")
  97.  
  98.  fs.delete("SimSoft/Daten/UpdateCheck/S")
  99.  print("System reboot...")
  100.  sleep(0.2)
  101.  os.reboot()
  102. end
  103.  
  104. --End
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top