Posted 06 November 2016 - 10:11 AM
CCBoot - A grub-like ComputerCraft Program
Try Multiple OS!
Code:
How to add OS:
1. Change it:
if choice == 1 then
shell.run("/rom/programs/shell")
end
To it:
if choice == 1 then
shell.run("/rom/programs/shell")
elseif choice == then
shell.run("path-to-os-bootloader")
end
2. Add OS name:
print(" CCBoot")
print(" Choose An OS:")
print("1: CraftOS")
print("2: Yoour-os-name")
3. Reboot
Pastebin: http://pastebin.com/F2wZFSjt
Try Multiple OS!
Code:
--CCBoot by Maccraft123
--Functions:
function SetUp()
term.setBackgroundColor(colors.black)
term.clear()
term.setCursorPos(1,1)
print(" CCBoot")
print(" Choose An OS:")
print("1: CraftOS")
write("OS Choice: ")
choice = read()
if choice == 1 then
shell.run("/rom/programs/shell")
end
end
SetUp()
How to add OS:
1. Change it:
if choice == 1 then
shell.run("/rom/programs/shell")
end
To it:
if choice == 1 then
shell.run("/rom/programs/shell")
elseif choice == then
shell.run("path-to-os-bootloader")
end
2. Add OS name:
print(" CCBoot")
print(" Choose An OS:")
print("1: CraftOS")
print("2: Yoour-os-name")
3. Reboot
Pastebin: http://pastebin.com/F2wZFSjt