From d8a9af85b444f78158a78d4076dec9ae35546b98 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Thu, 19 May 2011 13:50:42 -0700 Subject: [PATCH] Add firewall start script to venetN:M or venetN interface, if that is the only option --- firewall/debian-linux-lib.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/firewall/debian-linux-lib.pl b/firewall/debian-linux-lib.pl index 2b056ad4c..d54d8ecb8 100755 --- 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;