Parent Directory | Revision Log | Patch
revision 144 by dpavlin, Tue Aug 4 18:27:21 2009 UTC | revision 179 by dpavlin, Sun Aug 9 16:37:46 2009 UTC | |
---|---|---|
# | Line 14 sub ifconfig { | Line 14 sub ifconfig { |
14 | ||
15 | sub tap { | sub tap { |
16 | ||
17 | if ( my $dev = $ENV{DEV} ) { | |
18 | warn "W: running under device $dev, not configuring tap0\n"; | |
19 | return; | |
20 | } | |
21 | ||
22 | if ( $server::ip !~ m{^172} ) { | |
23 | warn "W: server ip mismetch, not configuring tap0\n"; | |
24 | return; | |
25 | } | |
26 | ||
27 | my $interfaces = read_file '/etc/network/interfaces'; | my $interfaces = read_file '/etc/network/interfaces'; |
28 | ||
29 | if ( $interfaces !~ m{tap0}s ) { | if ( $interfaces !~ m{tap0}s ) { |
|
ViewVC Help | |
Powered by ViewVC 1.1.26 |