Today I decided to share with you a small script that (I wish) will cover all your bootloading needs.
It's made to be the shortest and simplest possible startup script that allows you to launch anything you want in the top level coroutine.
This is the very first brick of my incoming OS and I would like to make it as robust as possible.
If you find a bug or a way to improve please let me know. ^^
Usage:
Press the key (f1…f10) corresponding to the boot entry you want to launch.
If there's only one boot option, the bootloader starts it automatically bypassing menu display.
Screenshot:
[attachment=2306:screenshot.png]
Install: 5zhkL3Sd
pastebin get 5zhkL3Sd startup
Configuration:
Boot entries are defined in a table at the top of the bootloader, comments should be self-explanatory.
Examples:
Spoiler
{
name = 'LyqydOS'
, boot = function ()
os.run({}, '/rom/programs/shell', '/LyqydOS/procman')
end
}
{
name = 'OneOS beta'
, boot = function ()
os.run({}, '/rom/programs/shell', '/system/API/Bootstrap.lua')
end
}
Tip:
Some OS installers tends to overwrite startup script, it's offen a good idea to keep a backup of your bootloader setup in safe place before installing a new OS.