Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Hello people. I'm very pleased with myself as I've recently done LF Scratch. It's been a lot of hard work but it's been very rewarding as I've learnt an enormous amount and I've done it all myself (well, Google helped a fair bit), this is the first time I've asked for help. The thing is, the driver for my modem, an Alcatel Speedtouch, works as a Kernel module which loads at boot. The problem is, the Nvidia module seems to put it of it's stride. If I boot to init 5, the Nvidia module stops the modem connecting to my ISP and I have to unplug it and plug it in again, the hotplug script notices it and it then connects. I don't like doing that though so what I do is boot to init 3, type root, password, init 5 and by the time I've done that the modem has done it's thing and the GDM takes me to my Gnome desktop.
So what I'd like to know, is it possible to make the boot scripts pause for about 10 seconds at init 3 to let the modem draw breath? On Mandrake it pauses for about 30 seconds during the boot process to let the modem connect and then moves on. I will study the way they do it but I would be grateful for any assistance, if someone could give me a few tips and point me in the right direction.
Sadly it doesn't work (yes, I did remember to chmod 755). The script runs if I open it in a terminal but if I run it during boot as you described, there is no pause. Presumably the script is still running in the background somewhere, meanwhile the boot process is busy starting Gnome and...no internet. Thanks for your time.
Yay! It works! The answer was so obvious I'm ashamed it took so long for the penny to drop. All it needed was
Code:
#!/bin/bash
sleep 20
init 5
The pause script sleeps in the background for 20 second while the modem settles down and then takes me into Gnome without typing a thing. Thanks for your help mdh. Sorry for being so thick.
It's an interesting issue you have, if you feel the need to you may want to
make note of it on lfs-support, you won't be the only one that runs into
this... and we may come up with a better way. (note I'm not on that list,
only really lfs-dev and lfs-hackers).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.