Lines 34-39
Link Here
|
34 |
alias_IFACE="$(eval echo \$\{alias_${iface}\})" |
34 |
alias_IFACE="$(eval echo \$\{alias_${iface}\})" |
35 |
status_IFACE="$(ifconfig | gawk -v IFACE="${iface}" '$0 ~ /Link/ { if ($1 == IFACE) print "up" }')" |
35 |
status_IFACE="$(ifconfig | gawk -v IFACE="${iface}" '$0 ~ /Link/ { if ($1 == IFACE) print "up" }')" |
36 |
vlans="$(eval echo \$\{iface_${IFACE}_vlans\})" |
36 |
vlans="$(eval echo \$\{iface_${IFACE}_vlans\})" |
|
|
37 |
preifup_IFACE="$(eval echo \$\{preifup_${iface}\})" |
37 |
} |
38 |
} |
38 |
|
39 |
|
39 |
iface_start() { |
40 |
iface_start() { |
Lines 43-48
Link Here
|
43 |
checkconfig || return 1 |
44 |
checkconfig || return 1 |
44 |
|
45 |
|
45 |
local IFACE="${1}" |
46 |
local IFACE="${1}" |
|
|
47 |
|
48 |
if [ -n ${preifup_IFACE} ] |
49 |
then |
50 |
# We have a custom script to run before ifconfig |
51 |
ebegin "Setting up ${IFACE} by running script ${preifup_IFACE}" |
52 |
${preifup_IFACE} || { |
53 |
retval=$? |
54 |
eend ${retval} "Setup script ${preifup_IFACE} for ${IFACE} failed" |
55 |
return ${retval} |
56 |
} |
57 |
eend 0 |
58 |
fi |
59 |
|
46 |
ebegin "Bringing ${IFACE} up" |
60 |
ebegin "Bringing ${IFACE} up" |
47 |
if [ "${iface_IFACE}" != "dhcp" ] |
61 |
if [ "${iface_IFACE}" != "dhcp" ] |
48 |
then |
62 |
then |