diff options
author | Florin Grad <florin@mandriva.com> | 2003-02-03 18:56:29 +0000 |
---|---|---|
committer | Florin Grad <florin@mandriva.com> | 2003-02-03 18:56:29 +0000 |
commit | 6dda538c4b98b0f554d56d0a73fe83bafa169846 (patch) | |
tree | 2f44f40c3ac06667b4ba5b279247b050360bca7f /perl-install/network/netconnect.pm | |
parent | 54b386221bf8fac4ae3dbbbeb7e588f263a2394f (diff) | |
download | drakx-backup-do-not-use-6dda538c4b98b0f554d56d0a73fe83bafa169846.tar drakx-backup-do-not-use-6dda538c4b98b0f554d56d0a73fe83bafa169846.tar.gz drakx-backup-do-not-use-6dda538c4b98b0f554d56d0a73fe83bafa169846.tar.bz2 drakx-backup-do-not-use-6dda538c4b98b0f554d56d0a73fe83bafa169846.tar.xz drakx-backup-do-not-use-6dda538c4b98b0f554d56d0a73fe83bafa169846.zip |
fix some drakgw behaviour
Diffstat (limited to 'perl-install/network/netconnect.pm')
-rw-r--r-- | perl-install/network/netconnect.pm | 9 |
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 { |