/[vz-tools]/trunk/vz-create.pl
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/vz-create.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 19 by dpavlin, Tue Apr 17 13:05:11 2007 UTC revision 35 by dpavlin, Thu Dec 13 23:50:47 2007 UTC
# Line 43  if ($arg =~ m/$RE{net}{IPv4}/) { Line 43  if ($arg =~ m/$RE{net}{IPv4}/) {
43          $hostname = $arg;          $hostname = $arg;
44          $ip = host($arg);          $ip = host($arg);
45          chomp($ip);          chomp($ip);
46          $ip =~ s/^.*\s(\S+)$/$1/;          $ip =~ s/^.*?$RE{net}{IPv4}{-keep}.*$/$1/s;
47  }  }
48    
49  $ip ||= prompt('Enter IP: ', -require => {  $ip ||= prompt('Enter IP: ', -require => {

Legend:
Removed from v.19  
changed lines
  Added in v.35

  ViewVC Help
Powered by ViewVC 1.1.26