I had trouble getting stuff in /Library/StartupItems working. I would copy the files other people have posted here, but it never seemed to work.
The trick, I found, was in the line-feed characters. I created my scripts using BBEdit, saved using Macintosh line feeds. It appears (I think...