Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local eeprom,res,args=require("component").eeprom,require("shell").resolve,{...}
- if #args >= 1 then
- local file=io.open(re(args[1]),'r')
- if #args >= 2 then eeprom.setLabel(args[2]) end
- eeprom.set(file:read("*all"))
- else print("input at least 1 file argument") end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement