Skip to content

Instantly share code, notes, and snippets.

@Panakotta00
Last active April 17, 2022 06:14
Show Gist options
  • Save Panakotta00/daa9b699b62f9486029353881718b146 to your computer and use it in GitHub Desktop.
Save Panakotta00/daa9b699b62f9486029353881718b146 to your computer and use it in GitHub Desktop.
Installs FicsIt-OS on this EEPROM and a inserted Drive/Floppy

FicsIt-OS Bootstrapper

This small little script can be placed into a EEPROM of a computer that has one floppy/drive inserted and a internet card available.

It will download and install the latest version of FicsIt-OS onto your drive and EEPROM without you having to do anything.

local script = "https://raw.githubusercontent.com/Panakotta00/FicsIt-OS/main/misc/install.lua"
print("Load internet...")
internet = computer.getPCIDevices(findClass("FINInternetCard"))[1]
if not internet then
print("ERROR! No internet-card found! Please install a internet card!")
computer.beep(0.2)
return
end
print("Download Installation script...")
code, data = internet:request(script, "GET", ""):await()
if code ~= 200 then
print("ERROR! Failed to request installation script from '" .. script .. "'")
computer.beep(0.2)
return
end
print("Run installation...")
func = load(data)
func()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment