Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local serialization = require("serialization")
- local component = require("component")
- local function load_config()
- local file = io.open("/etc/sc", "r")
- if not file then
- return {}
- end
- local config = serialization.unserialize(file:read("*all"))
- file:close()
- return config
- end
- local config = load_config()
- if not config.primary then
- return
- end
- local gpu = component.gpu
- gpu.bind(config.primary, false)
- gpu.setResolution(gpu.maxResolution())
- require("tty").clear()
Advertisement
Add Comment
Please, Sign In to add comment