summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2004-09-22 02:27:15 +0000
committerOlivier Blin <oblin@mandriva.org>2004-09-22 02:27:15 +0000
commit81a21b68ff838a49b6aa6f52a7dd541b414dea4a (patch)
tree22cff4b0c98063b90b6fcb2ca2bb6037efbc9078 /perl-install/standalone
parentda8d171e12c61497099da2f684d1ac90755e4d31 (diff)
downloaddrakx-81a21b68ff838a49b6aa6f52a7dd541b414dea4a.tar
drakx-81a21b68ff838a49b6aa6f52a7dd541b414dea4a.tar.gz
drakx-81a21b68ff838a49b6aa6f52a7dd541b414dea4a.tar.bz2
drakx-81a21b68ff838a49b6aa6f52a7dd541b414dea4a.tar.xz
drakx-81a21b68ff838a49b6aa6f52a7dd541b414dea4a.zip
simplify
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-xperl-install/standalone/net_monitor2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/standalone/net_monitor b/perl-install/standalone/net_monitor
index f5f2031df..a3faf1da6 100755
--- a/perl-install/standalone/net_monitor
+++ b/perl-install/standalone/net_monitor
@@ -47,7 +47,7 @@ my $netcnx = {};
my $netc = {};
my $intf = {};
network::netconnect::read_net_conf($netcnx, $netc, $intf);
-$default_intf or ($default_intf, undef, undef, undef) = network::tools::get_internet_connection($netc, $intf);
+$default_intf ||= network::tools::get_default_gateway_interface($netc, $intf);
if ($force) {
$connect and network::tools::start_interface($default_intf);