/[pxelator]/lib/PXElator/server.pm
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 /lib/PXElator/server.pm

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

revision 528 by dpavlin, Fri Sep 17 17:31:54 2010 UTC revision 530 by dpavlin, Fri Sep 17 18:20:36 2010 UTC
# Line 24  if ( my $dev = $ENV{DEV} ) { Line 24  if ( my $dev = $ENV{DEV} ) {
24          die "device $dev not up: ifconfig $dev\n$ifconfig" unless $ifconfig =~ m/UP/;          die "device $dev not up: ifconfig $dev\n$ifconfig" unless $ifconfig =~ m/UP/;
25          $ip      = $1 if $ifconfig =~ m/inet addr:(\S+)/s;          $ip      = $1 if $ifconfig =~ m/inet addr:(\S+)/s;
26          $netmask = $1 if $ifconfig =~ m/Mask:(\S+)/s;          $netmask = $1 if $ifconfig =~ m/Mask:(\S+)/s;
27          $bcast   = $1 if $ifconfig =~ m/Bcast:(\S)/s;          $bcast   = $1 if $ifconfig =~ m/Bcast:(\S+)/s;
28  }  }
29    
30  warn "DEV $ip $bcast $netmask";  warn "DEV $ip $bcast $netmask";

Legend:
Removed from v.528  
changed lines
  Added in v.530

  ViewVC Help
Powered by ViewVC 1.1.26