ComputerCraft Archive

youBoot 0.0.1 - A simple but yet complex bootloading system

computer networking unknown forum

Description

youBoot is a simple bootloader for Pocket ComputersFor now.. Its as simple as a recovery system.. it requests the "ramdisk" and installs it. Its useless right now, but I have soo many planned features...

Installation

Copy one of these commands into your ComputerCraft terminal:

Pastebin:pastebin get RpXb32M9 youboot_0.0.1_-_a_simple_but_yet_complex_bootloading_system
wget:wget https://pastebin.com/raw/RpXb32M9 youboot_0.0.1_-_a_simple_but_yet_complex_bootloading_system
Archive:wget https://cc.shobie.xyz/cc/get/pb-RpXb32M9 youboot_0.0.1_-_a_simple_but_yet_complex_bootloading_system
Quick Install: wget https://cc.shobie.xyz/cc/get/pb-RpXb32M9 youBoot 0.0.1 - A simple but yet complex bootloading system

Usage

Run the program after downloading

Tags

networkingforumpocket-programs

Source

View Original Source

Code Preview

broad = false
term.clear()
term.setCursorPos(1,1)
write("Ramdisk name: ")
ramdisk = read()
print("Loading modem...")
mod = peripheral.wrap("back")
mod.open(5614)
mod.transmit(5614,5613,"ping")
event, ms,sc, rc,message = os.pullEvent("modem_message")
if rc == 5613 then
  if message == "ready" then
    h = fs.open(ramdisk,"r")
    fileC = h.readAll()
    h.close()
    mod.transmit(5613,5614,textutils.serialize(fileC))
    broad = true
  end
  print("Done! Broadcasted: " .. tostring(broad))
end