summaryrefslogtreecommitdiffstats
path: root/drakwizard.pl
diff options
context:
space:
mode:
authorMichael Scherer <misc@mandriva.com>2004-06-09 10:17:52 +0000
committerMichael Scherer <misc@mandriva.com>2004-06-09 10:17:52 +0000
commit42191726e37c9da11caca46119a6c877ab28319c (patch)
tree4dfd911eaf589933fc9c0f052fb222189da61000 /drakwizard.pl
parentae71d95f9f6fffc43cf993e828f70ec31ca38df0 (diff)
downloaddrakwizard-42191726e37c9da11caca46119a6c877ab28319c.tar
drakwizard-42191726e37c9da11caca46119a6c877ab28319c.tar.gz
drakwizard-42191726e37c9da11caca46119a6c877ab28319c.tar.bz2
drakwizard-42191726e37c9da11caca46119a6c877ab28319c.tar.xz
drakwizard-42191726e37c9da11caca46119a6c877ab28319c.zip
Allow 3rd parties wizards to be added to mcc.
Diffstat (limited to 'drakwizard.pl')
-rwxr-xr-xdrakwizard.pl9
1 files changed, 9 insertions, 0 deletions
diff --git a/drakwizard.pl b/drakwizard.pl
index b8ce3f29..1823cb86 100755
--- a/drakwizard.pl
+++ b/drakwizard.pl
@@ -34,6 +34,7 @@ $::isWizard = 1;
$::Wizard_no_previous = 1;
$::Wizard_title = "Drakwizard";
$::Wiz_dir = '/usr/share/wizards/';
+$::Wiz_more_dir = "/etc/wizard.d/";
my $in = interactive->vnew;
my %wiz = (
@@ -54,6 +55,14 @@ my %wiz = (
kolab => ['Kolab', N("Kolab server")],
);
+
+foreach my $file (glob_("$::Wiz_more_dir/*.conf"))
+{
+ next unless -f "$file";
+ %tmp=getVarsFromSh($file);
+ $wiz{lc($file)}= [ %tmp{'NAME'}, %tmp{'DESCRIPTION'} ];
+}
+
@ARGV = grep { ! /^--/ } @ARGV;
if (!defined($wiz{$ARGV[0]})) {
$in->ask_from(