Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local proxy = ...
- local filesystem = require "filesystem"
- local component = require "component"
- local term = require "term"
- local maxResX,maxResY = component.gpu.maxResolution()
- if maxResX >= 80 and maxResY >= 25 then
- component.gpu.setResolution(80,25)
- end
- term.clear()
- print("SKS-BOOT\a")
- for k,v in component.list() do
- if v == "filesystem" then
- if filesystem.proxy(k).getLabel() ~= nil then
- print(k,filesystem.proxy(k).getLabel())
- else
- print(k)
- end
- end
- end
- print("\nBoot device:")
- local rPartPath = io.read()
- local partPath = rPartPath:sub(1,rPartPath:len()-1)
- filesystem.umount("/")
- filesystem.mount(component.proxy(component.get(partPath)),"/")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement