Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if not fs.exists(".shrc") then
- shrc = fs.open(".shrc","w")
- shrc.write("# The contents of this file are executed \n# as Shell commands every time the System boots.\n\n# Comments can be added by starting lines with \"#\"\n\n")
- shrc.flush()
- shrc.close()
- end
- shrc = fs.open(".shrc","r")
- while true do
- cmd = shrc.readLine()
- if not cmd then break end
- if string.sub(cmd,1,1) ~= "#" then
- shell.run(cmd)
- end
- end
- shrc.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement