Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Is there a way to skip network setup on startup?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Jefklak
l33t
l33t


Joined: 26 Oct 2003
Posts: 818
Location: Belgium

PostPosted: Sat Nov 01, 2003 1:03 pm    Post subject: Is there a way to skip network setup on startup? Reply with quote

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
View user's profile Send private message
Edweirdo
Guru
Guru


Joined: 28 Jan 2003
Posts: 353
Location: Boston, Mass, USA

PostPosted: Sat Nov 01, 2003 1:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
silverwolf
n00b
n00b


Joined: 30 Jul 2003
Posts: 48
Location: UK::Cambridgeshire

PostPosted: Sat Nov 01, 2003 5:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
Jefklak
l33t
l33t


Joined: 26 Oct 2003
Posts: 818
Location: Belgium

PostPosted: Sat Nov 01, 2003 7:42 pm    Post subject: Reply with quote

Thanks for the answers guys, but I'm not that talented in scripting - especially not in UNIX interfaces :)
Someone else maybe?
Back to top
View user's profile Send private message
silverwolf
n00b
n00b


Joined: 30 Jul 2003
Posts: 48
Location: UK::Cambridgeshire

PostPosted: Sat Nov 01, 2003 7:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
Barkotron
Apprentice
Apprentice


Joined: 05 Aug 2003
Posts: 253
Location: location, location.

PostPosted: Sat Nov 01, 2003 8:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
Pete_Keller
l33t
l33t


Joined: 30 Sep 2003
Posts: 664
Location: Norwich, CT USA

PostPosted: Sun Nov 02, 2003 3:25 am    Post subject: Reply with quote

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
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Sun Nov 02, 2003 7:17 am    Post subject: Reply with quote

Moved from Installing Gentoo.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
silverwolf
n00b
n00b


Joined: 30 Jul 2003
Posts: 48
Location: UK::Cambridgeshire

PostPosted: Sun Nov 02, 2003 11:21 am    Post subject: Reply with quote

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 :wink:
_________________
The internet is really big
Back to top
View user's profile Send private message
Jefklak
l33t
l33t


Joined: 26 Oct 2003
Posts: 818
Location: Belgium

PostPosted: Sun Nov 02, 2003 11:22 am    Post subject: Reply with quote

Woah this is yust great!! Thanks for the link!
8)
Back to top
View user's profile Send private message
silverwolf
n00b
n00b


Joined: 30 Jul 2003
Posts: 48
Location: UK::Cambridgeshire

PostPosted: Sun Nov 02, 2003 1:00 pm    Post subject: Reply with quote

Jefklak wrote:
Woah this is yust great!! Thanks for the link!
8)


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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum