OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [or1ksim/] [brend.sh] - Diff between revs 461 and 508

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 461 Rev 508
Line 99... Line 99...
    echo "Failed to remove ${tap}"
    echo "Failed to remove ${tap}"
    exit 1
    exit 1
fi
fi
 
 
# Restore the Ethernet interface. We could use ifconfig with the IP address,
# Restore the Ethernet interface. We could use ifconfig with the IP address,
# netmask and broadcast mask from earlier, but this does not seem to work in a
# netmask and broadcast mask from earlier, but this does not work in a DHCP
# DHCP world
# world (the MAC has changed). Instead we use a single shot dhcp
#   ifconfig ${eth} ${eth_ip} netmask ${eth_netmask} broadcast ${eth_broadcast}
# configuration. In future the extant eth0 dhclient will refresh the lease.
# Instead we use a single shot dhcp configuration. In future the extant eth0
 
# dhclient will refresh the lease.
 
dhclient -1 -d ${eth0}
dhclient -1 -d ${eth0}
 
 
if [ $? != 0 ]
if [ $? != 0 ]
then
then
    echo "Failed to get lease for ${eth}"
    echo "Failed to get lease for ${eth}"

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.