--- lib/PXElator/network.pm 2009/08/07 12:26:49 175 +++ lib/PXElator/network.pm 2009/08/11 12:38:23 197 @@ -14,8 +14,13 @@ sub tap { + if ( my $dev = $ENV{DEV} ) { + warn "W: running under device $dev, not configuring tap0\n"; + return; + } + if ( $server::ip !~ m{^172} ) { - warn "W: not configuring tap0 interface!"; + warn "W: server ip mismetch, not configuring tap0\n"; return; } @@ -23,7 +28,7 @@ if ( $interfaces !~ m{tap0}s ) { - system "sudo apt-get install vde2"; + system "sudo apt-get install -y vde2"; write_file '/tmp/interfaces', qq{