chris proofing the bootloader

This commit is contained in:
2026-01-16 17:13:12 -05:00
parent 55fdddeff8
commit 83814311e5
3 changed files with 4 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
--:Minify:--
local BOOT_DRIVE_PATH=... or "/$"
local BOOT_DRIVE_PATH=({...})[1] or "/$"
---@diagnostic disable-next-line: undefined-global
local term = term
local os = os

View File

@@ -1,6 +1,6 @@
--:Minify:--
sleep(1)
local BOOT_DRIVE_PATH=... or "/$"
local BOOT_DRIVE_PATH=({...})[1] or "/$"
-- UnBIOS by JackMacWindows
-- This will undo most of the changes/additions made in the BIOS, but some things may remain wrapped if `debug` is unavailable
-- To use, just place a `bios.lua` in the root of the drive, and run this program

View File

@@ -1,10 +1,10 @@
local diskpath="put your path here"
periphemu.create("right", "drive")
disk.insertDisk("right", diskpath)
local file = fs.open("/disk/boot/cct/eeprom")
local file = fs.open("/disk/boot/cct/eeprom", "r")
local text = file.readAll()
file.close()
local func = load(text, "@bios.lua")
func()
func("/disk")