Gentoo Archives: gentoo-user

From: Peter Lewis <prlewis@×××××××××××.org>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Network start delay?
Date: Wed, 07 Feb 2007 10:46:59
Message-Id: 200702071037.24409.prlewis@letterboxes.org
1 Hi all,
2
3 I have a quick question about my init scripts.
4
5 I start my wireless network with the script
6
7 /etc/init.d/net.eth2
8
9 which is started by init in the "default" runlevel.
10
11 I also have
12
13 /etc/init.d/netmount
14
15 to mount some samba shares, and which is also started my init in the "default"
16 runlevel, but depends on "net" from the line:
17
18 local myneed="net"
19
20 So, as I understand it, this makes sure that init starts net.eth* before
21 starting netmount. That's good. However, eth2 is on a DHCP-enabled connection
22 and takes a few seconds to come up after starting the script. By the time
23 netmount is started, net.eth2 has not finished coming up, so netmount fails
24 and the samba shares are never mounted automatically.
25
26 Is there a way to make the netmount script wait for a route to exist before
27 attempting to connect?
28
29 Thanks!
30
31 Pete.
32 --
33 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Network start delay? Iain Buchanan <iaindb@××××××××××××.au>