View previous topic :: View next topic |
Author |
Message |
UclaBob Tux's lil' helper
Joined: 22 Oct 2002 Posts: 83
|
Posted: Mon Jun 02, 2003 12:41 pm Post subject: Laptop eth0 |
|
|
Hey everybody,
I have a laptop...it is nice :-p....but not everywhere that I use it has internet access. So it is very painful to sit through the
"Bringing eth0 up..." message at bootup, which takes a couple of minutes.
Somehow at one point my laptop configured itself to not wait at all on bootup for eth0. If it was plugged into a network, it would work...else it just continued on its merry way.
I just did a reinstall, so I'm not sure what or how this was accomplished. If somebody with some knowledge on the subject would point me in the right direction, I would appreciate it.
Thanks,
Bob |
|
Back to top |
|
|
sulu Guru
Joined: 21 May 2002 Posts: 399 Location: Dornbirn/Austria
|
Posted: Mon Jun 02, 2003 1:42 pm Post subject: Don't start eth0 automatically on boot |
|
|
Hi
I'm thinking over the same problem.
I think i'll remove the activation of eth0 from the boot-process via
Code: | rc-update del net.eht0 default |
So i'll have to start eth0 manually.
Maybe a little wrapper script will make live easier.
eth0up
....
/init.d/net.eth0 start
#Start services dependent on eth0
/init.d/someservice start
eth0down
....
/init.d/net.eth0 stop
#Stop services dependent on eth0
/init.d/someservice stop
This should work.
Anyone with a better idea ??
Greetz
Sulu |
|
Back to top |
|
|
sgs n00b
Joined: 06 Nov 2002 Posts: 33
|
Posted: Tue Jul 01, 2003 12:42 pm Post subject: Set the dhcp timeout |
|
|
I guess its likely that your using dhcp.....
Edit /etc/conf.d/net to add a new timeout option for dhcpcd
My file has
Code: |
...
iface_eth0="dhcp"
dhcpcd_eth0="-t 7"
...
|
This alters the behaviour of the /etc/init.d/net.eth0 script (worth a look)
The default timeout option for the dhcpcd daemon is high - 60 seconds. (This program is responsible for talking to the dhcp server which allocates ip addresses according to the hardware address which is unique for every network card.)
Sometimes it is conveniant to have this high as you notice it when its booting up and remember to plug the network cable back in
I find the delay too annoying so have set my timeout to 7 seconds. I haven't yet found the dhcp servers I use ever taking longer than this.....and you can always bring the relevant services up manually.....or adjust the timeout and reboot. Maybe could reduce the time even further....but you want a time in which your dhcp server, if it is physically connected, can consistantly respond.
Hope this helps someone. |
|
Back to top |
|
|
pYrania Retired Dev
Joined: 27 Oct 2002 Posts: 650 Location: Cologne - Germany
|
Posted: Tue Jul 01, 2003 1:08 pm Post subject: |
|
|
currently i have created another initlevel with decent services (basically without networking services and setiathome)
you can tell grub to boot into another runlevel if you simply add the runlevel number at the end of the kernel line.
grub won't know what to do with it and pass it to init.
just a temporary hack though.
i have already started to hack on a little program that prompts you, whether you want to use network at or not, at bootime.
will release it when it's done. _________________ Markus Nigbur |
|
Back to top |
|
|
|