View previous topic :: View next topic |
Author |
Message |
zedoo n00b

Joined: 14 Jun 2005 Posts: 39
|
Posted: Tue Sep 06, 2005 11:47 am Post subject: backgrounding dhcpcd on boot |
|
|
hi,
my network interface is configured at boot with dhcp. sometimes i am not connected to a network, so the boot process hangs for a minute because dhcp is not getting anything...
i wonder how i can cancel or background the dhcp thing. i tried Ctrl-c Ctrl-x .. does not work.
felix |
|
Back to top |
|
 |
massimo Veteran


Joined: 22 Jun 2003 Posts: 1226
|
Posted: Tue Sep 06, 2005 12:07 pm Post subject: |
|
|
In /etc/conf.d/net you can set dhcpcd_eth0="-t 10" meaining it will only try for ten seconds to get an ip address (man dhcpcd). _________________ Hello 911? How are you? |
|
Back to top |
|
 |
zedoo n00b

Joined: 14 Jun 2005 Posts: 39
|
Posted: Tue Sep 06, 2005 12:24 pm Post subject: |
|
|
ok i have done that. though i' d like to background the process with a shourtcut to make boot even only 10 seconds faster...
felix |
|
Back to top |
|
 |
elestedt Guru

Joined: 13 Mar 2005 Posts: 383
|
Posted: Tue Sep 06, 2005 2:31 pm Post subject: |
|
|
zedoo wrote: | ok i have done that. though i' d like to background the process with a shourtcut to make boot even only 10 seconds faster...
felix |
try ifplugd or similar - it will start net.ethX (you specify the interfaces in a config file) when it detects a link... |
|
Back to top |
|
 |
mvephoto n00b

Joined: 13 Sep 2005 Posts: 5 Location: Winnipeg, MB
|
Posted: Mon Sep 19, 2005 8:17 pm Post subject: |
|
|
I'm not sure if your problem is solved, or if this thread is dead. I ran into the same issue, and found this:
http://www.gentoo.org/doc/en/handbook/2005.1/handbook-x86.xml?part=4&chap=6
The solution from this link, combined with the solution from massimo (dhcpcd_eth0="-t 10") (thanks, massimo) works for me. _________________ there are 10 kinds of people who can read binary - those who can and those who cannot |
|
Back to top |
|
 |
|