Debian rc.local

From LinuxNewbie

Debian doesn't include an rc.local file by default, but you can add one by following there instructions as root:

pico /etc/init.d/local

Make sure you start the file with #!/bin/bash and have a newline at the end of the file. After you are through editing...

chmod o+x /etc/init.d/local
update-rc local defaults 80

You can add commands to /etc/init.d/local that you want to run at start. Remember to put a & at the end of the line if the command needs to continue running. If the command continues (like a daemon) and you don't have & the rest of the file will be skipped.

on debian sarge, i had to:

chmod o+x /etc/init.d/local
update-rc.d local defaults 80