[Peeweelinux] problems getting rcS.d/10network to run dhcpcd

Ken Emmons, Jr. [email protected]
Wed, 19 Mar 2003 15:11:27 -0500


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