Only delete addresses for interfaces that exist.
This commit is contained in:
parent
83e82c452e
commit
60134ddec5
@ -682,8 +682,8 @@ stop()
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# Only delete addresses for non PPP interfaces
|
# Only delete addresses for interfaces that exist
|
||||||
if ! [ "$(command -v is_ppp)" = "is_ppp" ] || ! is_ppp; then
|
if _exists; then
|
||||||
_delete_addresses "${IFACE}"
|
_delete_addresses "${IFACE}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user