Commits
Alexander Y. Fomichev authored and Kir Kolyshkin committed 695ebe56ca5
gentoo-add_ip.sh: fix scan for IP addresses existing in /etc/conf.d/net /etc/vz/dists/scripts/gentoo-add_ip.sh of vzctl v3.0.16 has a stupid but rather nasty bug. short description: when a function add_ip() looking for the ip(s) to be assigned to vps it use a simple grep for each of the ip(s) in conf.d/net. btw gentoo conf.d/net is some more tricky then just an ip storage, so any presence of ip in this file will breaks a logic thus an ip will not be added to conf.d/net at all. testcase: something like postup() { route add -net 192.168.0.0/16 gw 192.168.1.1 } preventing of address 192.168.1.1 being added to conf.d/net I guess, bug itself is stupid and fix is trivial [kir@openvz.org: taken from http://forum.openvz.org/index.php?t=tree&th=2760&mid=14223]