||Start Me Up: Writing and Understanding OS X StartupItems|
And please don't forget to set privileges properly. When set incorrectly (e.g. world writable, or group writable witht he wrong group) anyone could use your script to gain root access to the system at system startup. For istance by modifying your script to set the suid bit on a file of one choosing.
Hear us Roar