From: "Wright, David" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: RE: [tomsrtbt] Network access
Date sent: Thu, 27 Jan 2000 13:34:09 +1100
> This message is in MIME format. Since your mail reader does not understand
> this format, some or all of this message may not be legible.
>
> ------_=_NextPart_000_01BF686F.AB8D1070
> Content-Type: text/plain
>
> IMHO:change rc.custom so that it tries to use DHCP
> if that fails, then use the static address in setting.s
>
> something like:
> --------------------------------------------------
> ifconfig lo up
> route add -net 127.0.0.0 lo
> echo -e "Trying DHCP...\c"
> dhcpcd eth0
> sleep 25
> if test -e '/var/run/dhcpcd-cache.eth0' ; then
> echo "DONE"
> ln -s -f /etc/dhcpc/resolv.conf /etc/resolv/conf
> else
> echo "FAILED"
> echo "Using static address"
> ifconfig eth0 $IPADDR up
> route add -net $NETWORK
> fi
> ---------------------------------------------
Looks very promising. I think it would be useful
if rc.custom constained such stuff by default.
Tom?
Thankx a lot.
Martin Mankowski