summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-08-28 18:02:29 +0000
committerOlivier Blin <oblin@mandriva.org>2005-08-28 18:02:29 +0000
commitb0023a478c709783f9da1b16550d778ca94075fd (patch)
tree1bf6a2cc634cbc236db7c1b6cfa7dffe0fc48c78
parent321601779029020a7c83eb3b5c327f282a748c69 (diff)
downloaddrakx-b0023a478c709783f9da1b16550d778ca94075fd.tar
drakx-b0023a478c709783f9da1b16550d778ca94075fd.tar.gz
drakx-b0023a478c709783f9da1b16550d778ca94075fd.tar.bz2
drakx-b0023a478c709783f9da1b16550d778ca94075fd.tar.xz
drakx-b0023a478c709783f9da1b16550d778ca94075fd.zip
restart associated ethernet device for dsl connections needing it
-rw-r--r--perl-install/network/netconnect.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/perl-install/network/netconnect.pm b/perl-install/network/netconnect.pm
index 11e1be2f2..00186b0d7 100644
--- a/perl-install/network/netconnect.pm
+++ b/perl-install/network/netconnect.pm
@@ -154,6 +154,10 @@ sub real_main {
services::restart("network");
} else {
network::tools::stop_net_interface($net, 0);
+ if (exists $net->{adsl}{ethernet_device}) {
+ network::tools::stop_interface($net->{adsl}{ethernet_device}, 0);
+ network::tools::stop_interface($net->{adsl}{ethernet_device}, 0);
+ }
network::tools::start_net_interface($net, 0);
}
return "end";