Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- MONITOR was CHANGED in monitor.cfg
- --optimal monitor size 5*4
- local found = fs.exists("config/monitor.cfg")
- if found == false then
- print("Input Monitor Number:")
- input = read()
- local file = fs.open("config/monitor.cfg","w")
- file.writeLine(input)
- file.writeLine("peripheralspluplus_off")
- file.writeLine("space")
- file.writeLine("clear")
- file.close()
- end
- file = fs.open("config/monitor.cfg","r")
- local fileData = {}
- local line = file.readLine()
- repeat
- table.insert(fileData,line)
- line = file.readLine()
- until line == nil
- file.close()
- monitor_number = fileData[1]
- local programName = "Caw_OS"
- local pasteIndex = "EZYiC6RV"
- shell.run("rm"..programName)
- shell.run("delete "..programName)
- shell.run("pastebin get "..pasteIndex.." "..programName)
- shell.run("monitor",monitor_number,programName)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement