Advertisement
Guest User

PBL Installer

a guest
May 26th, 2019
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.42 KB | None | 0 0
  1. fs.makeDir("/pbl")
  2. fs.makeDir("/partitions/")
  3. fs.makeDir("/partitions/1/")
  4.  
  5. for k, v in pairs(fs.list("/")) do
  6.     if v == "rom" or v == "partitions" or v == "pbl" then
  7.         --do nothing
  8.     else
  9.         fs.move("/"..v, "/partitions/1/"..v)
  10.     end
  11. end
  12.  
  13. print("Please enter the name of the OS currently installed (Leave blank if no OS): ")
  14. local osn = io.read()
  15.  
  16. if osn ~= "" and osn then
  17.  
  18.     local instTbl = {
  19.         [1] = {
  20.             ["description"] = osn,
  21.             ["aware"] = false,
  22.             ["type"] = "os",
  23.             ["directory"] = "/partitions/1/",
  24.         },
  25.     }
  26.  
  27.     local fh = fs.open("/pbl/part.cfg", "w")
  28.     fh.write(textutils.serialize(instTbl))
  29.     fh.close()
  30.  
  31. end
  32.  
  33. shell.run("wget https://raw.githubusercontent.com/MrObsidy/CC-PBL/master/startup startup")
  34. shell.run("wget https://raw.githubusercontent.com/MrObsidy/CC-PBL/master/pbl/mounter /pbl/mounter")
  35. shell.run("wget https://raw.githubusercontent.com/MrObsidy/CC-PBL/master/tools/mnt /tools/mnt")
  36. shell.run("wget https://raw.githubusercontent.com/MrObsidy/CC-PBL/master/tools/umnt /tools/umnt")
  37. shell.run("wget https://raw.githubusercontent.com/MrObsidy/CC-PBL/master/tools/chroot /tools/chroot")
  38. shell.run("wget https://raw.githubusercontent.com/MrObsidy/CC-PBL/master/tools/uchroot /tools/uchroot")
  39. shell.run("wget https://raw.githubusercontent.com/MrObsidy/CC-PBL/master/tools/pblhelp /tools/pblhelp")
  40. print("Done.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement