summaryrefslogtreecommitdiffstats
path: root/bin/draknetcenter
blob: b2f8d149f12788964f6f42129a1d01267b229bcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/perl
# Olivier Blin, 2007 <oblin@mandriva.com>
# Licensed under the GPL


use strict;
use lib qw(/usr/lib/libDrakX);

# i18n: IMPORTANT: to get correct namespace (drakx-net instead of libDrakX)
BEGIN { unshift @::textdomains, 'drakx-net' }

use standalone;
use network::network;
use network::monitor;
use network::netcenter;
use dbus_object;

my $in = 'interactive'->vnew('su');
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);