Topic: Starting a script at boot

I have the script '/etc/init.d/asterisk start'. Where would I place this to start up at boot?

Re: Starting a script at boot

/etc/init.d/asterisk enable

You may also read Kamikaze init scripts.

1x ASUS WL-700g Encore (Kamikaze 7.09, BCM947xx//953xx [2.4])
1x ASUS WL-500g Premium with Wistron CM9 WiFi card (Kamikaze 7.09, BCM947xx//953xx [2.4])
1x Linksys WRT54GL v1.1 with 512MB MMC card mod, optimized MMC driver (Kamikaze trunk r9548, BCM947xx//953xx [2.4])
NO support via PM.

Re: Starting a script at boot

Figured it out myself. I created a file S60asterisk containing the line '/etc/init.d/asterisk start' in the rc.d directory. Then made it executable. Perhaps not the most effective way but it worked.

Re: Starting a script at boot

The /etc/init.d/asterisk enable command just create a /etc/rc.d/S60asterisk which is a symlink of /etc/init.d/asterisk.

Re: Starting a script at boot

...and it's better to use the "enable" option on the script in /etc/init.d because it's easier to maintain - enable, disable, and more.

Netgear WGT634U // TP-Link TL-WDR3600