Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fs.makeDir("/pbl")
- fs.makeDir("/partitions/")
- fs.makeDir("/partitions/1/")
- for k, v in pairs(fs.list("/")) do
- if v == "rom" or v == "partitions" or v == "pbl" then
- --do nothing
- else
- fs.move("/"..v, "/partitions/1/"..v)
- end
- end
- print("Please enter the name of the OS currently installed (Leave blank if no OS): ")
- local osn = io.read()
- if osn ~= "" and osn then
- local instTbl = {
- [1] = {
- ["description"] = osn,
- ["aware"] = false,
- ["type"] = "os",
- ["directory"] = "/partitions/1/",
- },
- }
- local fh = fs.open("/pbl/part.cfg", "w")
- fh.write(textutils.serialize(instTbl))
- fh.close()
- end
- shell.run("wget https://raw.githubusercontent.com/MrObsidy/CC-PBL/master/startup startup")
- shell.run("wget https://raw.githubusercontent.com/MrObsidy/CC-PBL/master/pbl/mounter /pbl/mounter")
- shell.run("wget https://raw.githubusercontent.com/MrObsidy/CC-PBL/master/tools/mnt /tools/mnt")
- shell.run("wget https://raw.githubusercontent.com/MrObsidy/CC-PBL/master/tools/umnt /tools/umnt")
- shell.run("wget https://raw.githubusercontent.com/MrObsidy/CC-PBL/master/tools/chroot /tools/chroot")
- shell.run("wget https://raw.githubusercontent.com/MrObsidy/CC-PBL/master/tools/uchroot /tools/uchroot")
- shell.run("wget https://raw.githubusercontent.com/MrObsidy/CC-PBL/master/tools/pblhelp /tools/pblhelp")
- print("Done.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement