summaryrefslogtreecommitdiffstats
path: root/lib/network
diff options
context:
space:
mode:
authorDerek Jennings <djennings@mageia.org>2013-07-20 20:39:34 +0000
committerColin Guthrie <colin@mageia.org>2013-08-24 18:40:32 +0100
commitb23ecf09334de48937af46cc621471257b2d5985 (patch)
treee6fbb4ed9d4d0673c307ac982313d442b8698381 /lib/network
parent7feea8b8b5270e569f17b61966753fa41db33eb7 (diff)
downloaddrakx-net-b23ecf09334de48937af46cc621471257b2d5985.tar
drakx-net-b23ecf09334de48937af46cc621471257b2d5985.tar.gz
drakx-net-b23ecf09334de48937af46cc621471257b2d5985.tar.bz2
drakx-net-b23ecf09334de48937af46cc621471257b2d5985.tar.xz
drakx-net-b23ecf09334de48937af46cc621471257b2d5985.zip
install net_monitor package on demand (mga#157)
Diffstat (limited to 'lib/network')
-rw-r--r--lib/network/connection_manager.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/network/connection_manager.pm b/lib/network/connection_manager.pm
index 9e76868..6096c13 100644
--- a/lib/network/connection_manager.pm
+++ b/lib/network/connection_manager.pm
@@ -222,6 +222,7 @@ sub stop_connection {
sub monitor_connection {
my ($cmanager) = @_;
my $interface = $cmanager->{connection} && $cmanager->{connection}->get_interface or return;
+ $cmanager->{in}->do_pkgs->install('net_monitor');
run_program::raw({ detach => 1 }, '/usr/bin/net_monitor', '--defaultintf', $interface);
}