Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local component = require("component")
- local installInto = {}
- function installInto.HDD()
- for address in component.list('filesystem') do
- local dev = component.proxy(address)
- local lab = dev.getLabel()
- if lab~='openos' and lab~='OpenOS' and lab~='tmpfs' then
- targetDrive = dev.address:sub(1,3)
- elseif lab=='openos' then
- fromDrive = dev.address:sub(1,3)
- end
- end
- fullString = 'yes|install --from=\'' .. fromDrive .. '\' --to=\'' .. targetDrive .. '\' --noreboot'
- os.execute(fullString)
- end
- return installInto
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement