summaryrefslogtreecommitdiffstats
path: root/perl-install/network/netconnect.pm
diff options
context:
space:
mode:
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+";
};
}