summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorFlorin Grad <florin@mandriva.com>2003-02-03 18:56:29 +0000
committerFlorin Grad <florin@mandriva.com>2003-02-03 18:56:29 +0000
commit6dda538c4b98b0f554d56d0a73fe83bafa169846 (patch)
tree2f44f40c3ac06667b4ba5b279247b050360bca7f /perl-install
parent54b386221bf8fac4ae3dbbbeb7e588f263a2394f (diff)
downloaddrakx-6dda538c4b98b0f554d56d0a73fe83bafa169846.tar
drakx-6dda538c4b98b0f554d56d0a73fe83bafa169846.tar.gz
drakx-6dda538c4b98b0f554d56d0a73fe83bafa169846.tar.bz2
drakx-6dda538c4b98b0f554d56d0a73fe83bafa169846.tar.xz
drakx-6dda538c4b98b0f554d56d0a73fe83bafa169846.zip
fix some drakgw behaviour
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/network/netconnect.pm9
1 files changed, 8 insertions, 1 deletions
diff --git a/perl-install/network/netconnect.pm b/perl-install/network/netconnect.pm
index a2bc40aba..a74c01d16 100644
--- a/perl-install/network/netconnect.pm
+++ b/perl-install/network/netconnect.pm
@@ -462,7 +462,14 @@ my $file = "$dir/draknet$suffix";
}
sub get_net_device {
- ${{ read_raw_net_conf() }}{InternetInterface};
+ #${{ read_raw_net_conf() }}{InternetInterface};
+ 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};
+ } else {
+ "ppp+";
+ };
}
sub read_net_conf {