echo ip link set $netif down
echo ip link set $netif mtu $mtu
echo ip link set $netif up
+ echo wait_for_if_up $netif
fi > /tmp/net.$netif.up
echo ip addr add $ip${mask:+/$mask} ${bcast:+broadcast $bcast} dev $netif >> /tmp/net.$netif.up
case $reason in
PREINIT)
ip link set $netif up
+ wait_for_if_up $netif
;;
BOUND)
setup_interface
# Handle static ip configuration
do_static() {
-{
+ {
echo ip link set $netif up
+ echo wait_for_if_up $netif
echo ip addr flush dev $netif
echo ip addr add $ip/$mask dev $netif
} > /tmp/net.$netif.up
# start bridge if necessary
if [ "$netif" = "$bridgename" ] && [ ! -e /tmp/net.$bridgename.up ]; then
ip link set $ethname up
+ wait_for_if_up $ethname
# Create bridge and add eth to bridge
brctl addbr $bridgename
brctl setfd $bridgename 0