summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-02-13 10:36:59 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-02-13 10:36:59 +0000
commit4400241314d963c03bdd072e407285ae4110be2a (patch)
tree935a12c8fb1ea3335af72e36bcebdc59376a505d
parentf378b1e1cb1ff19b5730850e3790ec6fbcda76a1 (diff)
downloaddrakx-4400241314d963c03bdd072e407285ae4110be2a.tar
drakx-4400241314d963c03bdd072e407285ae4110be2a.tar.gz
drakx-4400241314d963c03bdd072e407285ae4110be2a.tar.bz2
drakx-4400241314d963c03bdd072e407285ae4110be2a.tar.xz
drakx-4400241314d963c03bdd072e407285ae4110be2a.zip
(start_service_on_boot) prevent copying this style
-rw-r--r--perl-install/services.pm6
1 files changed, 2 insertions, 4 deletions
diff --git a/perl-install/services.pm b/perl-install/services.pm
index 86b3a35c9..de2a961ef 100644
--- a/perl-install/services.pm
+++ b/perl-install/services.pm
@@ -337,14 +337,12 @@ sub starts_on_boot {
sub start_service_on_boot ($) {
my ($service) = @_;
- run_program::rooted($::prefix, "/sbin/chkconfig", "--add", $service)
- or return 0;
- return 1;
+ run_program::rooted($::prefix, "/sbin/chkconfig", "--add", $service) ? 1 : 0;
}
sub do_not_start_service_on_boot ($) {
my ($service) = @_;
- run_program::rooted($::prefix, "/sbin/chkconfig", "--del", $service) ? 0 : 1;
+ run_program::rooted($::prefix, "/sbin/chkconfig", "--del", $service) ? 1 : 0;
}
1;