summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-02-13 10:34:12 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-02-13 10:34:12 +0000
commitf378b1e1cb1ff19b5730850e3790ec6fbcda76a1 (patch)
tree385ec4d823308a7ef79dfea72d378bbc7d9ae010
parent3d0cee6d9469e9be42bc2a475f440764529a44b3 (diff)
downloaddrakx-f378b1e1cb1ff19b5730850e3790ec6fbcda76a1.tar
drakx-f378b1e1cb1ff19b5730850e3790ec6fbcda76a1.tar.gz
drakx-f378b1e1cb1ff19b5730850e3790ec6fbcda76a1.tar.bz2
drakx-f378b1e1cb1ff19b5730850e3790ec6fbcda76a1.tar.xz
drakx-f378b1e1cb1ff19b5730850e3790ec6fbcda76a1.zip
(do_not_start_service_on_boot) : simplify it
-rw-r--r--perl-install/services.pm4
1 files changed, 1 insertions, 3 deletions
diff --git a/perl-install/services.pm b/perl-install/services.pm
index 4f46bbbe4..86b3a35c9 100644
--- a/perl-install/services.pm
+++ b/perl-install/services.pm
@@ -344,9 +344,7 @@ sub start_service_on_boot ($) {
sub do_not_start_service_on_boot ($) {
my ($service) = @_;
- run_program::rooted($::prefix, "/sbin/chkconfig", "--del", $service)
- or return 0;
- return 1;
+ run_program::rooted($::prefix, "/sbin/chkconfig", "--del", $service) ? 0 : 1;
}
1;