--- lib/PXElator/server.pm 2010/09/17 17:18:30 527 +++ lib/PXElator/server.pm 2010/09/17 17:31:54 528 @@ -21,6 +21,7 @@ if ( my $dev = $ENV{DEV} ) { my $ifconfig = `ifconfig $dev`; die "can't ifconfig $dev" unless $ifconfig; + 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;