PDA

View Full Version : /etc/bootmisc.sh



serge
12-13-2004, 05:01 PM
Correction: it should be /etc/init.d/bootmisc.sh. Sorry for the typing mistake.

Hi All: Just installed 3.7 to hard drive. Everything works great, except that the sript /etc/bootmisc.sh doesn't seem to be executed on my machine during booting. I'm sure it's me, but could anybody help. Note: Another Debian-based distribution (installed to hard drive) I tried, does execute the /etc/bootmisc.sh during booting.
Many thanks, and best regards to all,
Serge Matovic.
matovics@yahoo.com

shah
12-14-2004, 03:58 AM
Try locate where is bootmisc.sh script is.....usually in /etc/init.d/.
You need to add link to this script to to your /etc/rcX.d
run : upadate-rc.d bootmisc.sh defaults

:D :D

serge
12-14-2004, 04:15 PM
Thanks Shah for your reply. I did the following, as root: "update-rc.d bootmisc.sh defaults" and yes, the /etc/init.d/bootmisc.sh script runs during boot, ***but*** I cannot log in, i.e., it says "System bootup in progress-please wait".

shah
12-15-2004, 06:16 AM
Try remove all bootmisc.sh symlink in all rc0.d--------->rcX.d except in rcS.d.
:D

serge
12-15-2004, 08:41 PM
Hi shah: did exactly as you instructed. The results are:
1) Yes, the /etc/init.d/bootmisc.sh is executed during booting.
2) No, it still won't let me log in.

Just wanted to ask you, in Knoppix, where is the preferred location to put my own scripts that I want executed during booting?

Many thanks,
serge.

shah
12-16-2004, 01:36 AM
There is something missing when bootmisc.sh is running. I believed it has something to do with this line:
echo "System bootup in progress - please wait" > /etc/nologin
cp /etc/nologin /etc/nologin.boot

Check if rmnologin script is also running.
update-rc.d rmnologin defaults


If you run knoppix with Desktop.......it will boot to level5 (init5).
So the prefered location will be /etc/rc5.d.
But if you want to run that script on all level you, put it in rcS.d.
It will be just fine if you just run : update-rc.d <nameofscript> default......and let the script handle it.

:D :D