Line 26
Link Here
|
|
|
26 |
eval subsume="\$subsume_${IFVAR}" |
27 |
unset subsume_${IFVAR} |
28 |
|
Line 80
Link Here
|
|
|
83 |
eoutdent |
Lines 86-91
Link Here
|
86 |
|
|
|
87 |
# Must force the slaves to a particular state before adding them |
88 |
for IFACE in ${slaves}; do |
89 |
_delete_addresses |
90 |
_down |
91 |
done |
Line 95
Link Here
|
95 |
_up |
93 |
# - first test for interface subsume request (required for NFS root) |
96 |
-- |
94 |
if [ -n "${subsume}" ]; then |
|
|
95 |
einfo "Subsuming ${subsume} interface characteristics." |
96 |
eindent |
97 |
local oiface=${IFACE} |
98 |
IFACE=${subsume} |
99 |
local addr="$(_get_inet_address)" |
100 |
einfo "address: ${addr}" |
101 |
IFACE=${oiface} |
102 |
unset oiface |
103 |
eoutdent |
104 |
# subsume (presumably kernel autoconfigured) IP |
105 |
/sbin/ifconfig ${IFACE} ${addr} up |
106 |
|
107 |
else |
108 |
# warn if root on nfs and no subsume interface supplied |
109 |
local root_fs_type=$(mountinfo -s /) |
110 |
if [ ${root_fs_type} == "nfs" ]; then |
111 |
warn_nfs=1 |
112 |
ewarn "NFS root detected!!!" |
113 |
ewarn " If your system crashes here, /etc/conf.d/net needs" |
114 |
ewarn " subsume_${IFACE}=\"<iface>\" ... where <iface> is the" |
115 |
ewarn " (usually kernel autoconfigured) existing interface." |
116 |
fi |
117 |
# up the interface |
118 |
_up |
119 |
fi |
120 |
|