summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/drakxconf
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>1999-12-09 00:52:32 +0000
committerPascal Rigaux <pixel@mandriva.com>1999-12-09 00:52:32 +0000
commitd59b27d5fcc346d96072ed0edb88cda0223be084 (patch)
treef605bc19591d3cf23d372a5ace6c70fbe367a620 /perl-install/standalone/drakxconf
parent1934b3123c81c2ccb425626aa61ed29e38780ddf (diff)
downloaddrakx-d59b27d5fcc346d96072ed0edb88cda0223be084.tar
drakx-d59b27d5fcc346d96072ed0edb88cda0223be084.tar.gz
drakx-d59b27d5fcc346d96072ed0edb88cda0223be084.tar.bz2
drakx-d59b27d5fcc346d96072ed0edb88cda0223be084.tar.xz
drakx-d59b27d5fcc346d96072ed0edb88cda0223be084.zip
no_comment
Diffstat (limited to 'perl-install/standalone/drakxconf')
-rwxr-xr-xperl-install/standalone/drakxconf27
1 files changed, 27 insertions, 0 deletions
diff --git a/perl-install/standalone/drakxconf b/perl-install/standalone/drakxconf
new file mode 100755
index 000000000..f4adb9989
--- /dev/null
+++ b/perl-install/standalone/drakxconf
@@ -0,0 +1,27 @@
+#!/usr/bin/perl
+
+use lib qw(/usr/lib/libDrakX);
+
+
+use interactive;
+use keyboard;
+use Xconfigurator_consts;
+use common qw(:system);
+use c;
+
+local $_ = join '', @ARGV;
+
+/-h/ and die "usage: draxconf\n";
+
+$::isStandalone = 1;
+
+my $in = vnew interactive('su');
+
+my $choice = $in->ask_from_list("drakxconf",
+_("Choose the tool you want to use"),
+[ grep { my $prog = $_; int grep { -x "$_/$prog" } split ":", $ENV{PATH} }
+ qw(XFdrake diskdrake keyboarddrake mousedrake netdrake printerdrake ) ]) or c::_exit(0); #- workaround for perl-GTK
+
+$in->end;
+
+exec $choice, @ARGV or $in->exit(1);