summaryrefslogtreecommitdiffstats
path: root/perl-install/network/netconnect.pm
diff options
context:
space:
mode:
authorFlorin Grad <florin@mandriva.com>2003-09-05 14:28:30 +0000
committerFlorin Grad <florin@mandriva.com>2003-09-05 14:28:30 +0000
commitc3f96765d1b067bbdc8353306ed5f5d1d8b77256 (patch)
tree2c06b84653461af60eba70139229c0ab5e5fcbe9 /perl-install/network/netconnect.pm
parent7205eb330a711bf3df70a0383e0ba8a9578871ec (diff)
downloaddrakx-c3f96765d1b067bbdc8353306ed5f5d1d8b77256.tar
drakx-c3f96765d1b067bbdc8353306ed5f5d1d8b77256.tar.gz
drakx-c3f96765d1b067bbdc8353306ed5f5d1d8b77256.tar.bz2
drakx-c3f96765d1b067bbdc8353306ed5f5d1d8b77256.tar.xz
drakx-c3f96765d1b067bbdc8353306ed5f5d1d8b77256.zip
small fixes for drakgw and drakfirewall
Diffstat (limited to 'perl-install/network/netconnect.pm')
-rw-r--r--perl-install/network/netconnect.pm10
1 files changed, 6 insertions, 4 deletions
diff --git a/perl-install/network/netconnect.pm b/perl-install/network/netconnect.pm
index e154db1fe..639e1ab6f 100644
--- a/perl-install/network/netconnect.pm
+++ b/perl-install/network/netconnect.pm
@@ -316,12 +316,14 @@ sub load_conf {
sub get_net_device() {
my $connect_file = "/etc/sysconfig/network-scripts/net_cnx_up";
my $network_file = "/etc/sysconfig/network";
- if (cat_("$prefix$connect_file") =~ /network/) {
- ${{ getVarsFromSh("$prefix$network_file") }}{GATEWAYDEV};
+ if (cat_("$prefix$connect_file") =~ /ifup/) {
+ if_(cat_($connect_file) =~ /^\s*ifup\s+(.*)/m, split(' ', $1))
+ } elsif (cat_("$prefix$connect_file") =~ /network/) {
+ ${{ getVarsFromSh("$prefix$network_file") }}{GATEWAYDEV};
} elsif (cat_("$prefix$connect_file") =~ /isdn/) {
- "ippp+";
+ "ippp+";
} else {
- "ppp+";
+ "ppp+";
};
}