etc/dists/scripts/debian-add_ip.sh: remove venet0 completely if no IPs to add

When IPDELALL is set and IP_ADDR is empty, remove venet0 completely
from /etc/network/interfaces, so there will be no default route etc.

If IP_ADDR is not empty, only remove IP addresses and leave the main
venet0 section intact.

Should fix bug #1669.

http://bugzilla.openvz.org/1669

Reported-by: Olena Vasilkova <daemon@root.ua>
Signed-off-by: Kir Kolyshkin <kir@openvz.org>
1 file changed