|
Lines 336-347
Link Here
|
| 336 |
ifdown) |
336 |
ifdown) |
| 337 |
if [ "$HWD_INTERFACETYPE_0" != "wlan" ]; then |
337 |
if [ "$HWD_INTERFACETYPE_0" != "wlan" ]; then |
| 338 |
$IFPLUGD -i $INTERFACE -k 2>/dev/null |
338 |
$IFPLUGD -i $INTERFACE -k 2>/dev/null |
| 339 |
# When ifplug terminates it calls the down script which |
339 |
# When ifplug terminates it calls the down script which in turn |
| 340 |
# in turn runs ifdown without '-o hotplug' or '-o rc' |
340 |
# runs ifdown without '-o hotplug' or '-o rc' and writes status |
| 341 |
# and writes status information. When we sleep a little |
341 |
# information. But we must wait and ensure that all this info is |
| 342 |
# bit we ensure that we delete all status information |
342 |
# deleted afterwards. |
| 343 |
# after this ifplugd ifdown run. |
343 |
# Additionally ifdown must not return before ifplugd has terminated |
| 344 |
sleep 1 |
344 |
# so that a new ifplugd may be started when calling 'rcnetwork |
|
|
345 |
# restart' (See bug 129648). |
| 346 |
for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20; do |
| 347 |
if [ ! -f /var/run/ifplugd.$INTERFACE.pid ] ; then |
| 348 |
debug "ifplugd terminated" |
| 349 |
break |
| 350 |
fi |
| 351 |
debug "waiting for ifplugd to terminate ($i)" |
| 352 |
sleep 1 |
| 353 |
done |
| 345 |
fi |
354 |
fi |
| 346 |
;; |
355 |
;; |
| 347 |
esac |
356 |
esac |