From ff491e22b7d1ff200208507333fa647dbf3fee35 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Thu, 15 Sep 2005 05:35:02 +0000 Subject: read shorewall net interface from configuration file first --- perl-install/network/shorewall.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/perl-install/network/shorewall.pm b/perl-install/network/shorewall.pm index 90705ee41..07b791ed1 100644 --- a/perl-install/network/shorewall.pm +++ b/perl-install/network/shorewall.pm @@ -41,6 +41,11 @@ sub get_ifcfg_interface() { } sub get_shorewall_interface() { + #- read shorewall configuration first + foreach (get_config_file('interfaces')) { + $_->[0] eq 'net' and return $_->[1]; + } + #- else try to find the best interface available my $default_dev = get_ifcfg_interface(); $default_dev =~ /^ippp/ && "ippp+" || $default_dev =~ /^ppp/ && "ppp+" || -- cgit v1.2.1