Only delete addresses for interfaces that exist.

This commit is contained in:
Roy Marples 2009-05-29 15:23:23 +01:00
parent 83e82c452e
commit 60134ddec5

View File

@ -682,8 +682,8 @@ stop()
fi
done
# Only delete addresses for non PPP interfaces
if ! [ "$(command -v is_ppp)" = "is_ppp" ] || ! is_ppp; then
# Only delete addresses for interfaces that exist
if _exists; then
_delete_addresses "${IFACE}"
fi