~ubuntu-branches/debian/sid/vzctl/sid

« back to all changes in this revision

Viewing changes to etc/dists/scripts/suse-8.x_del_ip.sh

  • Committer: Bazaar Package Importer
  • Author(s): Ola Lundqvist
  • Date: 2011-10-17 06:51:28 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20111017065128-vgdwvq5lei9g4mc7
Tags: 3.0.29.3-1
New upstream release.
Closes: #638072.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
function del_ip()
25
25
{
26
 
        local ip
 
26
        local ipm
27
27
        local filetodel
28
28
        local file
29
29
        local aliasid
35
35
                rm -f ${VENET_DEV_CFG} ${VENET_DEV_CFG}:* >/dev/null 2>&1
36
36
                return 0;
37
37
        fi
38
 
        for ip in ${IP_ADDR}; do
 
38
        for ipm in ${IP_ADDR}; do
 
39
                ip_conv $ipm
39
40
                # find and delete a file with this alias
40
 
                filetodel=`grep -l "IPADDR=${ip}$" \
 
41
                filetodel=`grep -l "IPADDR=${_IP}$" \
41
42
                        ${VENET_DEV_CFG}:* 2>/dev/null`
42
43
                for file in ${filetodel}; do
43
44
                        rm -f "${file}"