/[soft]/drakx-net/trunk/bin/draknetcenter
ViewVC logotype

Contents of /drakx-net/trunk/bin/draknetcenter

Parent Directory Parent Directory | Revision Log Revision Log


Revision 398 - (show annotations) (download)
Thu Feb 3 18:07:04 2011 UTC (13 years, 2 months ago) by dmorgan
File size: 743 byte(s)
Import cleaned drakx-net
1 #!/usr/bin/perl
2 # Olivier Blin, 2007 <oblin@mandriva.com>
3 # Licensed under the GPL
4
5 use strict;
6 use lib qw(/usr/lib/libDrakX);
7
8 # i18n: IMPORTANT: to get correct namespace (drakx-net instead of libDrakX)
9 BEGIN { unshift @::textdomains, 'drakx-net' }
10
11 use common;
12 use standalone;
13 use network::network;
14 use network::monitor;
15 use network::netcenter;
16 use dbus_object;
17
18 #- Allow multiple instances, but only one per user:
19 is_running('draknetcenter') and die "draknetcenter already running\n";
20
21 my $in = 'interactive'->vnew('su');
22 my $net = {};
23 network::network::read_net_conf($net);
24 my $dbus;
25 eval { $dbus = dbus_object::system_bus() };
26 eval { $net->{monitor} = network::monitor->new($dbus) } if $dbus;
27
28 network::netcenter::main($in, $net, $dbus);

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.30