#!/usr/bin/perl # drakroam: wireless network roaming GUI # Austin Acton, 2004 # Olivier Blin, 2005-2006 # Licensed under the GPL use strict; use lib qw(lib /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; 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() }; network::drakroam::main($in, $net, $dbus, $args{interface}, $args{ap});