Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 12382 - net.eth0 could be a little easier to use
Summary: net.eth0 could be a little easier to use
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
: 16665 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-12-18 06:55 UTC by Anders Rune Jensen (RETIRED)
Modified: 2003-10-17 11:18 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anders Rune Jensen (RETIRED) gentoo-dev 2002-12-18 06:55:25 UTC
when net.eth0 or any other eth device hasn't been started yet, I can't start it
using "net.eth0 restart".  That would be nice. 

Also when I use dhcp and try to boot without a network cable plugged in, I can't
cancel the dhcp lookup (which takes about 2-3 min) with C-c. So I have to wait
for it to finish. This is very annoying because at home I use 192.168.1.6 and at
work I use dhcp and if I forget to change it when I go home I have to wait 2-3
min. Please fix this :-)
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-18 09:03:15 UTC
> when net.eth0 or any other eth device hasn't been started yet, I can't start it
> using "net.eth0 restart".  That would be nice. 

How so ?  If it havent been started, do :

 # /etc/init.d/net.eth0 start

If the service died, but are marked as started, do :

 # /etc/init.d/net.eth0 zap start

For all availible options, run:

 # /etc/init.d/net.eth0


Donny, know anything about dhcp ?
Comment 2 Donny Davies (RETIRED) gentoo-dev 2002-12-18 09:19:53 UTC
he cant cntrl-c *any* initscript.  and neither can the rest of us.

i dont see any problem :)

Comment 3 Donny Davies (RETIRED) gentoo-dev 2002-12-18 09:21:27 UTC
during boot i meant of course.
Comment 4 Anders Rune Jensen (RETIRED) gentoo-dev 2002-12-19 09:17:50 UTC
I know I must use start to start it  ;-)

but what I meant was that the script could be changed so that when it hasn't
been started yet restart tries to start it instead of giving me this lame error ;)

A lot of other init script does this. 

About the C-c: FreeBSD and debian can do it. Why can't gentoo?
Comment 5 Alain Penders (RETIRED) gentoo-dev 2003-02-01 21:25:38 UTC
Sounds to me like the default DHCPCD time-out needs to be changed, so that the init script doesn't spend 2-3 minutes waiting for a response.

Also, this bug probably doesn't belong in the Portage component :-)
Comment 6 Martin Schlemmer (RETIRED) gentoo-dev 2003-02-02 05:18:52 UTC
The restart even if stopped have been fixed in later baselayout versions.
As for the timeout, add it to dhcpcd options ?
Comment 7 SpanKY gentoo-dev 2003-08-11 17:05:20 UTC
yes, i'd suggest adding like '-i 20' to the dhcpcd options 
 
default is 60 seconds :( 
Comment 8 SpanKY gentoo-dev 2003-08-20 21:50:23 UTC
*** Bug 16665 has been marked as a duplicate of this bug. ***
Comment 9 roma1390 2003-08-21 05:18:08 UTC
seems like it's simply problem, but gentoo develeper does'nt want to fix it. Why?
Comment 10 SpanKY gentoo-dev 2003-08-21 06:28:04 UTC
azarah is a busy man, leave him be 
Comment 11 Martin Holzer (RETIRED) gentoo-dev 2003-10-17 11:18:45 UTC
fixed in latest binutils