summaryrefslogtreecommitdiffstats
path: root/bin/draknetcenter
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-10-02 18:30:05 +0000
committerOlivier Blin <oblin@mandriva.com>2008-10-02 18:30:05 +0000
commit3723e9f74b377fb861443d7fb47add8091744afe (patch)
treebef43d01b4260cc063858823a921d0b797277e1a /bin/draknetcenter
parent7c858fc73a6d872400710ef9ab61a0a4e4384a3e (diff)
downloaddrakx-net-3723e9f74b377fb861443d7fb47add8091744afe.tar
drakx-net-3723e9f74b377fb861443d7fb47add8091744afe.tar.gz
drakx-net-3723e9f74b377fb861443d7fb47add8091744afe.tar.bz2
drakx-net-3723e9f74b377fb861443d7fb47add8091744afe.tar.xz
drakx-net-3723e9f74b377fb861443d7fb47add8091744afe.zip
correctly initialize monitor object in draknetcenter/drakroam/net_applet so that it can be reused later
Diffstat (limited to 'bin/draknetcenter')
-rwxr-xr-xbin/draknetcenter2
1 files changed, 2 insertions, 0 deletions
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);