maumagro

MineOS

Jun 20th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local fs = require("filesystem")
  2.  
  3. if fs.get("bin/edit.lua") == nil or fs.get("bin/edit.lua").isReadOnly() then
  4.     print("Floppy disk filesystem detected: type \"install\" in command line and install OpenOS to your HDD. After that run MineOS installer again.")
  5.     print(" ")
  6. else
  7.     local installerPath = "/MineOS/System/OS/Installer.lua"
  8.     print("Downloading MineOS installer...")
  9.     fs.makeDirectory(fs.path(installerPath))
  10.     loadfile("/bin/wget.lua")("https://raw.githubusercontent.com/IgorTimofeev/OpenComputers/master/Installer/Installer.lua", installerPath, "-fq")
  11.     dofile(installerPath)
  12. end
Add Comment
Please, Sign In to add comment