summaryrefslogtreecommitdiffstats
path: root/perl-install/services.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2000-09-23 23:30:54 +0000
committerPascal Rigaux <pixel@mandriva.com>2000-09-23 23:30:54 +0000
commit041bce7f1ab685a4290865e4eb2c2f5d2aaac285 (patch)
treed7305d5a8fb789cffc0c4795cc3ff7eff2b8585f /perl-install/services.pm
parent61b38e21c24cb2537b7105f5867745d0a569ec6f (diff)
downloaddrakx-backup-do-not-use-041bce7f1ab685a4290865e4eb2c2f5d2aaac285.tar
drakx-backup-do-not-use-041bce7f1ab685a4290865e4eb2c2f5d2aaac285.tar.gz
drakx-backup-do-not-use-041bce7f1ab685a4290865e4eb2c2f5d2aaac285.tar.bz2
drakx-backup-do-not-use-041bce7f1ab685a4290865e4eb2c2f5d2aaac285.tar.xz
drakx-backup-do-not-use-041bce7f1ab685a4290865e4eb2c2f5d2aaac285.zip
no_comment
Diffstat (limited to 'perl-install/services.pm')
-rw-r--r--perl-install/services.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/services.pm b/perl-install/services.pm
index fd1ea51ce..319e4ff49 100644
--- a/perl-install/services.pm
+++ b/perl-install/services.pm
@@ -88,7 +88,7 @@ xfs => __("Starts and stops the X Font Server at boot time and shutdown."),
sub services {
my ($prefix) = @_;
my $cmd = $prefix ? "chroot $prefix" : "";
- my @l = map { [ /(\S+)/, /:on/ ] } sort `LANGUAGE=C $cmd chkconfig --list`;
+ my @l = map { [ /([^\s:]+)/, /\bon\b/ ] } grep { !/:$/ } sort `LANGUAGE=C $cmd chkconfig --list`;
[ map { $_->[0] } @l ], [ mapgrep { $_->[1], $_->[0] } @l ];
}