diff options
Diffstat (limited to 'perl-install/services.pm')
-rw-r--r-- | perl-install/services.pm | 2 |
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 ]; } |