init.d
¿Cómo ejecutar un script como root al inicio?
Found on a wikipage I have deleted.
I will try to put it back in a more appropriate page
Escribe el script que quieres que se ejecute en el /etc/init.d cambias los permisos a 755 como root: chmod 755 /etc/init.d/script Luego con el comando update-rc.d haces lo siguiente como root: update-rc.d /etc/init.d/script start 20 2 3 4 5 . stop 20 0 1 6 .
note: any script in /etc/init.d should be an init script (!), see /etc/init.d/README. The proper way to execute a script when the system is started is to call that script from /etc/rc.local