diff options
Diffstat (limited to 'perl-install')
-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 171020e32..611e6d92f 100644 --- a/perl-install/services.pm +++ b/perl-install/services.pm @@ -281,7 +281,7 @@ sub services { if ($::isInstall) { @l = sort { $a->[0] cmp $b->[0] } map { [ /([^\s:]+)/, /\bon\b/ ] } grep { !/:$/ } @raw_l; } else { - my $runlevel = my $runlevel = (split " ", `/sbin/runlevel`)[1]; + my $runlevel = (split " ", `/sbin/runlevel`)[1]; @l = sort { $a->[0] cmp $b->[0] } map { [ /([^\s:]+)/, /^\t/ ? /\bon\b/ : /\b$runlevel:on\b/ ] } grep { !/:$/ } @raw_l; } [ map { $_->[0] } @l ], [ map { $_->[0] } grep { $_->[1] } @l ]; |