arch-del_ip.sh: fix
From the bug reporter:
> interface lines in /etc/rc.conf:
>
> venet0_0="venet0:0 173.245.4.250 netmask 255.255.255.255 broadcast 0.0.0.0"
> venet0_1="venet0:1 10.10.10.12 netmask 255.255.255.255 broadcast 0.0.0.0"
>
> due to 'grep -B 1 -e "\\<${_IP}>\\" ${CFGFILE}'
>
> 'venet0_0
> venet0_1'
>
> is used as argument for del_param() and ifdown, first one reports
> incorrect syntax in sed expression, second one does not destroy an
> alias.
Patch is based on one by the bug reporter.
http://bugzilla.openvz.org/2367
Reported-by: barmaley <barmaley@knownhost.com>
Signed-off-by: Kir Kolyshkin <kir@openvz.org>
1 file changed