Changeset 423fe6b in clfs-embedded for bootscripts/clfs/rc.d/init.d


Ignore:
Timestamp:
Sep 9, 2009, 10:35:48 PM (15 years ago)
Author:
Maarten Lankhorst <mlankhorst@…>
Branches:
master
Children:
884672b
Parents:
9a6cb5a
git-author:
Maarten Lankhorst <mlankhorst@…> (09/09/09 22:34:11)
git-committer:
Maarten Lankhorst <mlankhorst@…> (09/09/09 22:35:48)
Message:

add a udhcpc.conf script to make udhcpc actually useful

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bootscripts/clfs/rc.d/init.d/network

    r9a6cb5a r423fe6b  
    2222                        if [ "$DHCP" = "yes" ]; then
    2323                                echo -n "Starting DHCP for interface $INTERFACE: "
    24                                 udhcpc -b -i "$INTERFACE" \
     24                                # udhcpc is braindead, bring up interface first
     25                                ifconfig "$INTERFACE" up
     26
     27                                # Bridging code requires some time to wake up
     28                                [ "$INTERFACE" = "br0" ] && sleep 5
     29
     30                                udhcpc -b -i "$INTERFACE" -s /etc/udhcpc.conf \
    2531                                        -p "/var/run/udhcpc.$INTERFACE.pid" \
    2632                                        > /dev/null
Note: See TracChangeset for help on using the changeset viewer.