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

Joined: 15 Jul 2004 Posts: 33
|
Posted: Tue Oct 18, 2005 3:16 am Post subject: Booting up without ethernet cable plugged in - hangs[Solved] |
|
|
My setup works fine with the cable plugged in, but if I
take it out, my computer hangs at "Running dhcpcd ...".
Is there a way to make it work both with and without
the cable?
js
Last edited by jellysandwich on Tue Oct 18, 2005 7:04 pm; edited 1 time in total |
|
Back to top |
|
 |
Yuusou Apprentice

Joined: 18 May 2005 Posts: 178 Location: Canada
|
Posted: Tue Oct 18, 2005 3:24 am Post subject: |
|
|
you could specify a run level labelled "offline" which you could configure in order to do everything your system does except run dhcpcd. Or you could try pressing control c when it starts trying to run dhcpcd (I dunno if it works, never tried. But I think your best bet will be to try and get an "offline" run level going and boot off of that. There's a section on it in the other sections of the Gentoo Installation Manual. |
|
Back to top |
|
 |
Syque Tux's lil' helper


Joined: 15 Aug 2004 Posts: 110
|
Posted: Tue Oct 18, 2005 3:41 am Post subject: |
|
|
I don't know how long you've left it, but dhcpcd takes at least a minute to time out if there's no network. Have you left it for a few minutes to see if it's really hanging? |
|
Back to top |
|
 |
DOSBoy Tux's lil' helper


Joined: 26 Jun 2005 Posts: 84
|
Posted: Tue Oct 18, 2005 6:36 am Post subject: |
|
|
Put a -t option in /etc/conf.d/net
You can manually override Dhcpcd timeouts. |
|
Back to top |
|
 |
krakrjak n00b

Joined: 08 Feb 2004 Posts: 20
|
Posted: Tue Oct 18, 2005 7:03 am Post subject: |
|
|
if you have mii-tool installed or ethtool you can use the preup() part of the /etc/conf.d/net file in the example we have this:
#preup() {
# # Test for link on the interface prior to bringing it up. This
# # only works on some network adapters and requires the mii-diag
# # package to be installed.
# if mii-tool ${IFACE} 2> /dev/null | grep -q 'no link'; then
# ewarn "No link on ${IFACE}, aborting configuration"
# return 1
# fi
#
# # Test for link on the interface prior to bringing it up. This
# # only works on some network adapters and requires the ethtool
# # package to be installed.
# if ethtool ${IFACE} | grep -q 'Link detected: no'; then
# ewarn "No link on ${IFACE}, aborting configuration"
# return 1
# fi
#
# # Remember to return 0 on success
# return 0
#}
just uncomment the function name and the closing brace then uncomment the section for which ever tool you have installed on your system. This will not bring the interface up if there is no link.
Hope that helps. |
|
Back to top |
|
 |
jellysandwich n00b

Joined: 15 Jul 2004 Posts: 33
|
Posted: Tue Oct 18, 2005 12:55 pm Post subject: |
|
|
DOSBoy wrote: | Put a -t option in /etc/conf.d/net
You can manually override Dhcpcd timeouts. |
I tried this first since it was the easiest one, and it worked.
Solved! Thanks all!
js |
|
Back to top |
|
 |
nixnut Bodhisattva


Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Tue Oct 18, 2005 2:02 pm Post subject: |
|
|
Moved from Installing Gentoo to Networking & Security. _________________ Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered
talk is cheap. supply exceeds demand |
|
Back to top |
|
 |
|