Lines 33-39
Link Here
|
33 |
inet6_IFACE="$(eval echo \$\{inet6_${iface}\})" |
33 |
inet6_IFACE="$(eval echo \$\{inet6_${iface}\})" |
34 |
alias_IFACE="$(eval echo \$\{alias_${iface}\})" |
34 |
alias_IFACE="$(eval echo \$\{alias_${iface}\})" |
35 |
status_IFACE="$(ifconfig | gawk -v IFACE="${iface}" '/Link/ { if ($1 == IFACE) print "up" }')" |
35 |
status_IFACE="$(ifconfig | gawk -v IFACE="${iface}" '/Link/ { if ($1 == IFACE) print "up" }')" |
36 |
carrier_IFACE="$(ifconfig | gawk -v IFACE="${iface}" '/RUNNING/ { if ($1 == IFACE) print "running" }')" |
|
|
37 |
vlans="$(eval echo \$\{iface_${IFACE}_vlans\})" |
36 |
vlans="$(eval echo \$\{iface_${IFACE}_vlans\})" |
38 |
} |
37 |
} |
39 |
|
38 |
|
Lines 63-69
Link Here
|
63 |
if [ "${status_IFACE}" != "up" ] |
62 |
if [ "${status_IFACE}" != "up" ] |
64 |
then |
63 |
then |
65 |
# Check that the interface has a carrier |
64 |
# Check that the interface has a carrier |
66 |
if [ "${carrier_IFACE}" = "running" ] |
65 |
# The interface has to be up before we can check that it has a carrier |
|
|
66 |
/sbin/ifconfig ${IFACE} up |
67 |
if ifconfig eth0 | grep RUNNING >/dev/null |
67 |
then |
68 |
then |
68 |
/sbin/dhcpcd ${dhcpcd_IFACE} ${IFACE} >/dev/null || { |
69 |
/sbin/dhcpcd ${dhcpcd_IFACE} ${IFACE} >/dev/null || { |
69 |
retval=$? |
70 |
retval=$? |