On Wed, 2007-02-07 at 10:37 +0000, Peter Lewis wrote:
> Hi all,
> 
> I have a quick question about my init scripts.
> 
> I start my wireless network with the script
> 
> /etc/init.d/net.eth2
> 
> which is started by init in the "default" runlevel.
> 
> I also have
> 
> /etc/init.d/netmount
> 
> to mount some samba shares, and which is also started my init in the 
> "default" 
> runlevel, but depends on "net" from the line:
> 
> local myneed="net"
> 
> So, as I understand it, this makes sure that init starts net.eth* before 
> starting netmount. That's good. However, eth2 is on a DHCP-enabled connection 
> and takes a few seconds to come up after starting the script. By the time 
> netmount is started, net.eth2 has not finished coming up, so netmount fails 
> and the samba shares are never mounted automatically.
> 
> Is there a way to make the netmount script wait for a route to exist before 
> attempting to connect?

net.eth2 "shouldn't" return (by default) until it has a dhcp address,
which means all other scripts starting after it will wait until you have
an address.

Things you might have done to change the default behaviour include
RC_PARALLEL_STARTUP, and RC_NET_STRICT_CHECKING in /etc/conf.d/rc.

You can set them to "no", and "yes" respectively and see if the
following scripts wait...

HTH,
-- 
Iain Buchanan <iaindb at netspace dot net dot au>

When you're in command, command.
                -- Admiral Nimitz

-- 
gentoo-user@gentoo.org mailing list

Reply via email to