From 3723e9f74b377fb861443d7fb47add8091744afe Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Thu, 2 Oct 2008 18:30:05 +0000 Subject: correctly initialize monitor object in draknetcenter/drakroam/net_applet so that it can be reused later --- bin/draknetcenter | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bin/draknetcenter') diff --git a/bin/draknetcenter b/bin/draknetcenter index b822550..b2f8d14 100755 --- a/bin/draknetcenter +++ b/bin/draknetcenter @@ -11,6 +11,7 @@ BEGIN { unshift @::textdomains, 'drakx-net' } use standalone; use network::network; +use network::monitor; use network::netcenter; use dbus_object; @@ -19,5 +20,6 @@ my $net = {}; network::network::read_net_conf($net); my $dbus; eval { $dbus = dbus_object::system_bus() }; +eval { $net->{monitor} = network::monitor->new($dbus) } if $dbus; network::netcenter::main($in, $net, $dbus); -- cgit v1.2.1