From b23ecf09334de48937af46cc621471257b2d5985 Mon Sep 17 00:00:00 2001 From: Derek Jennings Date: Sat, 20 Jul 2013 20:39:34 +0000 Subject: install net_monitor package on demand (mga#157) --- bin/net_applet | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bin/net_applet') diff --git a/bin/net_applet b/bin/net_applet index b4d5ec1..a722c28 100755 --- a/bin/net_applet +++ b/bin/net_applet @@ -15,6 +15,7 @@ use network::connection; use network::connection::ethernet; use network::vpn; use run_program; +use do_pkgs; use mygtk2 qw(gtknew gtkset); use dbus_object; use network::monitor; @@ -315,6 +316,10 @@ sub shouldStart() { return getAutoStart(); } sub run_net_monitor() { + my $in = 'do_pkgs'; + # stop reaping child processes or else gurpmi segfaults + local $SIG{CHLD} = "DEFAULT"; + $in->do_pkgs->install('net_monitor'); run_program::raw({ detach => 1 }, '/usr/bin/net_monitor', '--defaultintf', $current_interface) unless is_running('net_monitor'); } sub run_netcenter() { -- cgit v1.2.1