summaryrefslogtreecommitdiffstats
path: root/bin
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 /bin
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 'bin')
-rwxr-xr-xbin/net_applet5
1 files changed, 5 insertions, 0 deletions
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() {