summaryrefslogtreecommitdiffstats
path: root/bin/drakroam
diff options
context:
space:
mode:
authorNicolas Lécureuil <nlecureuil@mandriva.com>2011-08-30 13:16:42 +0000
committerNicolas Lécureuil <nlecureuil@mandriva.com>2011-08-30 13:16:42 +0000
commitc590a4a7c162d1a81dbf02ca2e174384af0385bb (patch)
tree7e1279550b8e48add99b7b41281d27d249d279f3 /bin/drakroam
parent39d2ee13572a6dc634c0c454dfc43e0297483279 (diff)
downloaddrakx-net-c590a4a7c162d1a81dbf02ca2e174384af0385bb.tar
drakx-net-c590a4a7c162d1a81dbf02ca2e174384af0385bb.tar.gz
drakx-net-c590a4a7c162d1a81dbf02ca2e174384af0385bb.tar.bz2
drakx-net-c590a4a7c162d1a81dbf02ca2e174384af0385bb.tar.xz
drakx-net-c590a4a7c162d1a81dbf02ca2e174384af0385bb.zip
Create 2010.1 branch for drakx-net
Diffstat (limited to 'bin/drakroam')
-rwxr-xr-xbin/drakroam28
1 files changed, 28 insertions, 0 deletions
diff --git a/bin/drakroam b/bin/drakroam
new file mode 100755
index 0000000..0c6c400
--- /dev/null
+++ b/bin/drakroam
@@ -0,0 +1,28 @@
+#!/usr/bin/perl
+
+# drakroam: wireless network roaming GUI
+# Austin Acton, 2004 <austin@mandriva.org>
+# Olivier Blin, 2005-2006 <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 common;
+use network::drakroam;
+use network::monitor;
+
+my %args = map { if_(/^--(\w+)=(.*)$/ && member($1, qw(ap interface)), $1 => $2) } @ARGV;
+
+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::drakroam::main($in, $net, $dbus, $args{interface}, $args{ap});