PDA

View Full Version : booting into runlevel 1 want a script to autorun



nayrhyno
07-26-2006, 03:18 PM
hi,

i am using knoppix on a thumb drive and have it boot automatically into run level 1. i want to have it execute a simple script i wrote when it finishes booting. where does that script need to go? i have tried putting it into /etc/rc1.d and it doesn't execute.

any help would be appreciated.

-rm

maxIT
07-27-2006, 10:10 PM
Is better that you put your script in '/etc/init.d'.
What you have to put in '/etc/tc1.d' is a symlink to it.
The symlink has to follow a syntiax such as 'S+num+namescript' (es. S65myscript).
Here's something more exhaustive about this topic. (http://itreviews.blogspot.com/2006/05/linuxs-boot-process-explained.html) at 'Modification of execution levels' paragraph.