summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/network/connection_manager.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/network/connection_manager.pm b/lib/network/connection_manager.pm
index 3efb2c1..012ef84 100644
--- a/lib/network/connection_manager.pm
+++ b/lib/network/connection_manager.pm
@@ -241,6 +241,8 @@ sub stop_connection {
sub monitor_connection {
my ($cmanager) = @_;
+ # We need to check if net_monitor is installed or not.
+ $in->do_pkgs->ensure_is_installed('net_monitor', '/usr/bin/net_monitor') or return 1;
my $interface = $cmanager->{connection} && $cmanager->{connection}->get_interface or return;
run_program::raw({ detach => 1 }, '/usr/bin/net_monitor', '--defaultintf', $interface);
}