I found something that might help you. I was looking around for a way to automate a few things at login, but it turns out that you can write scripts that will automate things at
startup, too. Startup is defined as booting the machine, so check out the link below for information on this type of thing. It looks a bit complicated, so I haven't had time to read it, but it might be a good place to start.
http://www.macos.utah.edu/Documentat...utomation.html