What is the proper way to run a script at boot time? Specifically, I'm trying to mount an smb share at boot. The script I use works fine when run manually, but if I put it in rc.local, the share doesn't mount. I'm hard coding the path to shlight and the mount point, so it's not a "can't be found" issue.

I've also seen reference to /System/Library/StartupItems, but no real explaination of how to set that up.

Thanks,
Doc