summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--lib/network/connection_manager.pm2
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 0163be3..46ca9b1 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- do not do costly urpmi check before forking net_monitor
+
1.28
- tidy up polkit support
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);
}