diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2013-11-12 15:50:26 +0100 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2013-11-12 15:50:26 +0100 |
commit | c47a4b1cf7adf097a4fc7f2f2191a9f03db9ab44 (patch) | |
tree | f0d5916992facea3032505b36ee4f45418139137 /lib | |
parent | f2a25991f474918f302f5401c7284cd3fbeb2b34 (diff) | |
download | drakx-net-c47a4b1cf7adf097a4fc7f2f2191a9f03db9ab44.tar drakx-net-c47a4b1cf7adf097a4fc7f2f2191a9f03db9ab44.tar.gz drakx-net-c47a4b1cf7adf097a4fc7f2f2191a9f03db9ab44.tar.bz2 drakx-net-c47a4b1cf7adf097a4fc7f2f2191a9f03db9ab44.tar.xz drakx-net-c47a4b1cf7adf097a4fc7f2f2191a9f03db9ab44.zip |
do not do costly urpmi check before forking net_monitor
Diffstat (limited to 'lib')
-rw-r--r-- | lib/network/connection_manager.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/network/connection_manager.pm b/lib/network/connection_manager.pm index 6096c13..24bb998 100644 --- a/lib/network/connection_manager.pm +++ b/lib/network/connection_manager.pm @@ -222,7 +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'); + $cmanager->{in}->do_pkgs->ensure_binary_is_installed(qw(net_monitor net_monitor)); run_program::raw({ detach => 1 }, '/usr/bin/net_monitor', '--defaultintf', $interface); } |