projects
/
pxelator
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
832e672
)
fix broadcast extraction
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Fri, 17 Sep 2010 18:20:36 +0000
(18:20 +0000)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Fri, 17 Sep 2010 18:20:36 +0000
(18:20 +0000)
lib/PXElator/server.pm
patch
|
blob
|
history
diff --git
a/lib/PXElator/server.pm
b/lib/PXElator/server.pm
index
b423674
..
b6d2c45
100644
(file)
--- a/
lib/PXElator/server.pm
+++ b/
lib/PXElator/server.pm
@@
-24,7
+24,7
@@
if ( my $dev = $ENV{DEV} ) {
die "device $dev not up: ifconfig $dev\n$ifconfig" unless $ifconfig =~ m/UP/;
$ip = $1 if $ifconfig =~ m/inet addr:(\S+)/s;
$netmask = $1 if $ifconfig =~ m/Mask:(\S+)/s;
- $bcast = $1 if $ifconfig =~ m/Bcast:(\S)/s;
+ $bcast = $1 if $ifconfig =~ m/Bcast:(\S
+
)/s;
}
warn "DEV $ip $bcast $netmask";