View previous topic :: View next topic |
Author |
Message |
Jefklak l33t
Joined: 26 Oct 2003 Posts: 818 Location: Belgium
|
Posted: Sat Nov 01, 2003 1:03 pm Post subject: Is there a way to skip network setup on startup? |
|
|
It is sometimes frustrating if you have a notebook and aren't always connected to the internet (I'm not using Wireless). I've setup my eth0 to DHCP - but when starting up and when the network cable isnt plugged in Gentoo keeps on trying to get an IP address. Is there a way to skip this process because it takes 2 or 3 minutes for me to wait...
Except using the command "rc-update remove eth0" because when I AM connected to the internet I still have to enable eth0 after starting up...
Thanks! |
|
Back to top |
|
|
Edweirdo Guru
Joined: 28 Jan 2003 Posts: 353 Location: Boston, Mass, USA
|
Posted: Sat Nov 01, 2003 1:39 pm Post subject: |
|
|
If you don't want to remove the eth0 from your default runlevel it will always load. However, you could modify the net.eth0 to ask you at startup whether you want to connect or not. If you are fancy, you could have the question timeout and connect you if yo don't answer in a specified amount of time. I've thought about doing that, but haven't had the time. I just removed all my network interfaces from starting and start them by hand. _________________ Life is too short and too important to { take seriously | use Windows }. |
|
Back to top |
|
|
silverwolf n00b
Joined: 30 Jul 2003 Posts: 48 Location: UK::Cambridgeshire
|
Posted: Sat Nov 01, 2003 5:56 pm Post subject: |
|
|
There must be a dhcp timeout option somewhere. Setting a timeout smaller than the default would at least speed up the booting process without needing any outside interaction.
Anybody know if such a dhcp timeout option exists? _________________ The internet is really big |
|
Back to top |
|
|
Jefklak l33t
Joined: 26 Oct 2003 Posts: 818 Location: Belgium
|
Posted: Sat Nov 01, 2003 7:42 pm Post subject: |
|
|
Thanks for the answers guys, but I'm not that talented in scripting - especially not in UNIX interfaces
Someone else maybe? |
|
Back to top |
|
|
silverwolf n00b
Joined: 30 Jul 2003 Posts: 48 Location: UK::Cambridgeshire
|
Posted: Sat Nov 01, 2003 7:49 pm Post subject: |
|
|
Hey, you missed my point .. changing the startup scripts is going too far. I'll post a question about dhcp timeouts. _________________ The internet is really big |
|
Back to top |
|
|
Barkotron Apprentice
Joined: 05 Aug 2003 Posts: 253 Location: location, location.
|
Posted: Sat Nov 01, 2003 8:01 pm Post subject: |
|
|
silverwolf wrote: | Hey, you missed my point .. changing the startup scripts is going too far. I'll post a question about dhcp timeouts. |
Hmm, I dunno - I reckon changing the startup scripts as suggested is probably the best idea. The problem with setting a smaller DHCP timeout would be the increased likelihood of not getting an IP address even if DHCP is running on the network.
Unfortunately, I don't pretend to know anything at all about scripting, and I certainly don't know enough to be able to do that kind of thing, but I naively assume that it shouldn't be tooooo hard to add an interactive "If y then dhcpcd: If n then echo "not starting eth0"" or something. I can't see that adding a timeout would be too hard either.
Now that I've said that, I don't suppose anyone could either a) show us how it's done, or b) point us in a direction where we could find out how to do this? _________________ Give a man a fire and he'll be warm for a day: set fire to him and he'll be warm for the rest of his life. |
|
Back to top |
|
|
Pete_Keller l33t
Joined: 30 Sep 2003 Posts: 664 Location: Norwich, CT USA
|
Posted: Sun Nov 02, 2003 3:25 am Post subject: |
|
|
Jefklak,
Why don't you create another bootlevel called nonet?
Pete _________________ I am a SIGNATURE VIRUS, help me spread - attach me to your signature file. |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20485
|
Posted: Sun Nov 02, 2003 7:17 am Post subject: |
|
|
Moved from Installing Gentoo. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
silverwolf n00b
Joined: 30 Jul 2003 Posts: 48 Location: UK::Cambridgeshire
|
Posted: Sun Nov 02, 2003 11:21 am Post subject: |
|
|
Jefklak,
Here's your answer -- thanks to dma for help:
https://forums.gentoo.org/viewtopic.php?p=621673#621673
This means that you don't need to change much in the way of code, and start-up will be faster.
Choose a low number -- something like 3 seconds.
Enjoy _________________ The internet is really big |
|
Back to top |
|
|
Jefklak l33t
Joined: 26 Oct 2003 Posts: 818 Location: Belgium
|
Posted: Sun Nov 02, 2003 11:22 am Post subject: |
|
|
Woah this is yust great!! Thanks for the link!
|
|
Back to top |
|
|
silverwolf n00b
Joined: 30 Jul 2003 Posts: 48 Location: UK::Cambridgeshire
|
Posted: Sun Nov 02, 2003 1:00 pm Post subject: |
|
|
Jefklak wrote: | Woah this is yust great!! Thanks for the link!
|
Hey, this reflects the power of open source software. Why use anything else?
In a world without fences, who needs Gates? _________________ The internet is really big |
|
Back to top |
|
|
|