projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
484ef69
)
Add firewall start script to venetN:M or venetN interface, if that is the only option
author
Jamie Cameron
<jcameron@webmin.com>
Thu, 19 May 2011 20:50:42 +0000
(13:50 -0700)
committer
Jamie Cameron
<jcameron@webmin.com>
Thu, 19 May 2011 20:50:42 +0000
(13:50 -0700)
firewall/debian-linux-lib.pl
patch
|
blob
|
history
diff --git
a/firewall/debian-linux-lib.pl
b/firewall/debian-linux-lib.pl
index
2b056ad
..
d54d8ec
100755
(executable)
--- a/
firewall/debian-linux-lib.pl
+++ b/
firewall/debian-linux-lib.pl
@@
-121,7
+121,9
@@
local @boot = sort { $a->{'fullname'} cmp $b->{'fullname'} }
&net::boot_interfaces();
local ($eth) = grep { $_->{'fullname'} =~ /^eth\d+$/ } @boot;
local ($ppp) = grep { $_->{'fullname'} =~ /^ppp\d+$/ } @boot;
-return $eth || $ppp || $boot[0];
+local ($venetn) = grep { $_->{'fullname'} =~ /^venet\d+:\d+$/ } @boot;
+local ($venet) = grep { $_->{'fullname'} =~ /^venet\d+$/ } @boot;
+return $eth || $ppp || $venetn || $venet || $boot[0];
}
1;