summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/drakxservices
blob: 63318a031a88cd7be85536de9ea67fcc4933d236 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/perl

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

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

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);