Re: init HUP and static IP

Tom Oehser <[email protected]>
Newsgroups gmane.linux.tomsrtbt
Message-ID <[email protected]>
Try putting a 'sleep 5' after the pcmcia start and dhcpcd--.

The pcmcia is probably just taking a long time, so that it
is still running after your piece runs.  If you just pause
in rc.custom after the pcmcia start, it should solve it.

-Tom

On Fri, 3 May 2002, Pete Scott wrote:

> Date: Fri, 3 May 2002 11:21:22 +0000
> From: Pete Scott <[email protected]>
> To: [email protected]
> Subject: Re: [tomsrtbt] init HUP and static IP
>
> At 17:26 02/05/2002, you wrote:
>
> > > > ifconfig eth0 1234.1234.1234.1234 up
> > > > route add default eth0
> > > > route add default gw 2345.2345.2345.2345
> > >
> > > But where's best to put that. Before or after the call to dhcpcd-- in rc.custom.gz?
>
> > As an 'else' to the 'if dhcpcd got an address, set it, else'.
>
> Did this but still got an address of 1.1.1.1.
>
> Discovered it worked fine on other machines that don't have a PCMCIA network cards.
>
> It seems that /etc/pcmcia/network is setting up the network and not rc.custom.gz I suppose because there
> isn't a network interface at that point. I've looked at /etc/pcmcia/network and can't see how/where the
> network interface gets setup up when dhcpcd-- doesn't set an address.
>
> Am I going to have to edit /etc/pcmcia/network and rebuild to get this to work on PCMCIA networked
> laptops? Or is there another way?
>
> > Or as a new if, before this if, that sets it.  I should do this in the default...
>
> That would be cool.
>
> Thanks for your help.
>
> Pete
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.