summaryrefslogtreecommitdiffstats
path: root/drakwizard.pl
diff options
context:
space:
mode:
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(