Lines 39-44
case "$USE_IFPLUGD" in
Link Here
|
39 |
# A and D |
39 |
# A and D |
40 |
if ! is_yes "$IN_IFPLUGD"; then |
40 |
if ! is_yes "$IN_IFPLUGD"; then |
41 |
# D |
41 |
# D |
|
|
42 |
! is_wireless $NAME || { |
43 |
print_error "ERROR: USE_IFPLUGD=yes for $NAME, wireless card is unsupported" |
44 |
exit 1 |
45 |
} |
42 |
! is_yes "$HAVE_IFPLUGD" && exit 1 |
46 |
! is_yes "$HAVE_IFPLUGD" && exit 1 |
43 |
if is_yes "$PERSISTENT_IFPLUGD"; then |
47 |
if is_yes "$PERSISTENT_IFPLUGD"; then |
44 |
if ! ifplugd_runs; then |
48 |
if ! ifplugd_runs; then |
Lines 184-201
process_sysctl_conf()
Link Here
|
184 |
return 0 |
188 |
return 0 |
185 |
} |
189 |
} |
186 |
|
190 |
|
|
|
191 |
if ! is_yes $IN_WPA_CLI; then # non-wifi or first pass for wifi |
187 |
# setup link-level params |
192 |
# setup link-level params |
188 |
xargise_file $IFACEDIR/default/iplink "$IP link set dev $NAME" |
193 |
xargise_file $IFACEDIR/default/iplink "$IP link set dev $NAME" |
189 |
xargise_file $IFACEDIR/default/iplink-$TYPE "$IP link set dev $NAME" |
194 |
xargise_file $IFACEDIR/default/iplink-$TYPE "$IP link set dev $NAME" |
190 |
xargise_file $MYIFACEDIR/iplink "$IP link set dev $NAME" |
195 |
xargise_file $MYIFACEDIR/iplink "$IP link set dev $NAME" |
191 |
|
196 |
|
192 |
# bring iface up |
197 |
# bring iface up |
193 |
if ! is_yes $KEEP_DOWN; then |
198 |
if ! is_yes $KEEP_DOWN; then |
194 |
$IP link set dev $NAME up && print_progress |
199 |
$IP link set dev $NAME up && print_progress |
|
|
200 |
fi |
195 |
fi |
201 |
fi |
196 |
|
202 |
|
197 |
# handle wireless extensions |
203 |
# handle wireless extensions, if any |
198 |
is_yes "$CONFIG_WIRELESS" && $SCRIPTDIR/config-wireless $NAME && print_progress |
204 |
if is_yes "$CONFIG_WIRELESS" && is_wireless $NAME; then |
|
|
205 |
if ! is_yes $IN_WPA_CLI; then |
206 |
$SCRIPTDIR/config-wireless $NAME |
207 |
rc=$? |
208 |
[ $rc -eq 2 ] || exit $rc |
209 |
print_progress |
210 |
fi |
211 |
fi |
199 |
|
212 |
|
200 |
# process ip neighbours |
213 |
# process ip neighbours |
201 |
xargise_file $MYIFACEDIR/ipneigh "$IP neigh replace dev $NAME" |
214 |
xargise_file $MYIFACEDIR/ipneigh "$IP neigh replace dev $NAME" |