SHOW:
|
|
- or go back to the newest paste.
1 | - | local component = require("component") |
1 | + | local fs = require("filesystem") |
2 | - | local computer = require("computer") |
2 | + | |
3 | if fs.get("bin/edit.lua") == nil or fs.get("bin/edit.lua").isReadOnly() then | |
4 | - | if not component.isAvailable("eeprom") 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 | - | error("EEPROM component is required for installation") |
5 | + | print(" ") |
6 | - | end |
6 | + | |
7 | local installerPath = "/MineOS/System/OS/Installer.lua" | |
8 | - | local handle, data, chunk = component.internet.request("https://raw.githubusercontent.com/IgorTimofeev/MineOS/master/Installer/BIOS.lua"), "" |
8 | + | print("Downloading MineOS installer...") |
9 | - | |
9 | + | fs.makeDirectory(fs.path(installerPath)) |
10 | - | while true do |
10 | + | loadfile("/bin/wget.lua")("https://raw.githubusercontent.com/IgorTimofeev/OpenComputers/master/Installer/Installer.lua", installerPath, "-fq") |
11 | - | chunk = handle.read(math.huge) |
11 | + | dofile(installerPath) |
12 | - | |
12 | + |