On Thursday 23 May 2002 16.06, Jerry Feldman wrote:
Boot sequences are set up by symlinks in the per-run level directories: /etc/init.d/rcn.d where n corresponds to run level. on my laptop, in /etc/init.d/rc5.d: S08pcmcia is a symlink to ../pcmcia. The /etc/init.d/rc script will execute the scripts in order. First it executes the Kxx scripts, then the Sxx scripts: for i in rc5.d/S[0-9][0-9]*; do #Then it tests to determine if the script actually exits and is executable. test -x $i || continue
The Snn script is then processed.
Not quite. The K* scripts are run if you leave the runlevel, not when you enter it. In /etc/init.d/rc you have for i in $prerc/K${rex}*; do note the prerc. Also, it's not executed at all if there's a S* script for the same service in the new runlevel. However, to change the order of the scripts, I'd suggest adding network to the "Required-start" line in /etc/init.d/pcmcia. Then run "insserv -r pcmcia" follwed by "insserv -d pcmcia". That should fix the order of execution. regards Anders -- I swear I do declare - how did you get that there?