View previous topic :: View next topic |
Author |
Message |
Guest
|
Posted: Mon May 27, 2002 11:47 am Post subject: Sometimes-connected laptop |
|
|
Hi
Using Gentoo, love it. Have it installed on a laptop, which is sometimes connected to a network but other times (hotel rooms, airports) it isn't. When it IS connected to a network it gets a DHCP address, and that works fine. When is ISN'T connected, eth0 times out trying to get a DHCP address (of course), but then eth0 fails to start, which means squid, postifx, mysql, etc etc don't start.
The only workaround I have found so far is to assign a static address to the Ethernet port, but that means I have to re-edit files when I want a DHCP address.
What I actually want to do is try to get a DCHP address, and if successful carry on. If not successful, then assign a static address and carry on, so that services dependent upon a network are able to start.
Thanks for any help
Andy |
|
Back to top |
|
|
mb Guru
Joined: 25 Apr 2002 Posts: 355 Location: Hessen | .de
|
Posted: Mon May 27, 2002 11:57 am Post subject: |
|
|
hi...
i have exactly the same problem... my solution (or better work-around) is to assign a static ip and call dhcp if needed...
the other way around is of course the best solution, but requires some scripting.... => maybe we should bring this up in gentoo suggestions..
#mb |
|
Back to top |
|
|
DataShark n00b
Joined: 26 May 2002 Posts: 28 Location: Portugal
|
Posted: Sat Jun 15, 2002 6:29 pm Post subject: quickswitch is what you want ... |
|
|
emerge quickswitch, read the docs and be happy |
|
Back to top |
|
|
fghellar Bodhisattva
Joined: 10 Apr 2002 Posts: 856 Location: Porto Alegre, BR
|
Posted: Sat Jun 15, 2002 7:04 pm Post subject: |
|
|
I'd suggest you simply do
Code: | rc-update del net.eth0 default |
and then manually run
Code: | /etc/inid.d/net.eth0 start|stop |
when needed. _________________ | www.gentoo.org | www.tldp.org | www.google.com | |
|
Back to top |
|
|
|
|
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
|
|