[Peeweelinux] problems getting rcS.d/10network to run dhcpcd
Adi Linden
[email protected]
Wed, 19 Mar 2003 14:21:58 -0600 (CST)
BOOTPROTO is set or configured in the /etc/config/ifcfg-eth? file(s)...
Adi
On Wed, 19 Mar 2003, Ken Emmons, Jr. wrote:
> Hello,
>
> I am trying to get dhcpcd to manage my interface at bootup.
>
> The network script in rcS.d has a function like this:
>
> ###start of snippet ###
>
> ifup ()
> {
> if [ "$BOOTPROTO" = "dhcp" ]; then
> if [ -f /sbin/pump ]; then
> # If we have pump we prefer it to get an ip number
> echo -n "Determining IP information for $DEVICE...."
> if /sbin/pump -i $DEVICE ; then
> echo " done...."
> else
> echo " failed...."
> fi
> elif [ -f /sbin/dhcpcd ]; then
> # Try to use dhcpcd
> echo -n "Determining IP information for $DEVICE...."
> if /sbin/dhcpcd $DEVICE ; then
> echo " done...."
> else
> echo "failed...."
> fi
> else
>
> ###end of snippet
>
> I can't seem to find where BOOTPROTO is set or configured. I could edit this script, but why do it if I can remain vanilla?
>
> ~Ken
>
> _______________________________________________
> Peeweelinux mailing list
> [email protected]
> http://mail.adis.on.ca/lists/listinfo/peeweelinux
>