--- lib/PXElator/server.pm 2009/08/06 18:09:17 160 +++ lib/PXElator/server.pm 2009/08/09 16:37:46 179 @@ -8,6 +8,12 @@ our $netmask = '255.255.255.0'; our $bcast = '172.16.10.255'; +if ( my $dev = $ENV{DEV} ) { + my $ifconfig = `ifconfig $dev`; + ( $ip, $bcast, $netmask ) = ( $1, $2, $3 ) if $ifconfig =~ m{inet addr:(\S+)\s+Bcast:(\S+)\s+Mask:(\S+)}s; + warn "DEV $dev $ip $bcast $netmask"; +} + our ( $ip_from, $ip_to ) = ( 10, 100 ); our $domain_name = 'pxelator.lan';