summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/drakxservices
blob: 065d5a7cfc434f2aec0d965198638114813998c1 (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
#!/usr/bin/perl

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

use common qw(:common :functional :file);
use interactive;
use services;
use log;

for (my $i=0; $i<=$#ARGV; $i++) {
    $ARGV[$i] eq '--embedded' and $::XID=$ARGV[$i+1] and $::isEmbedded = 1;
}

local $_ = join '', @ARGV;

/-h/ and die "usage: drakxservices\n";

$::isStandalone = 1;

my $in = vnew interactive('su');
my $l = services::ask($in);
services::doit($in, $l) if $l;

$in->exit(0);