diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2003-02-13 10:34:12 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2003-02-13 10:34:12 +0000 |
commit | f378b1e1cb1ff19b5730850e3790ec6fbcda76a1 (patch) | |
tree | 385ec4d823308a7ef79dfea72d378bbc7d9ae010 | |
parent | 3d0cee6d9469e9be42bc2a475f440764529a44b3 (diff) | |
download | drakx-backup-do-not-use-f378b1e1cb1ff19b5730850e3790ec6fbcda76a1.tar drakx-backup-do-not-use-f378b1e1cb1ff19b5730850e3790ec6fbcda76a1.tar.gz drakx-backup-do-not-use-f378b1e1cb1ff19b5730850e3790ec6fbcda76a1.tar.bz2 drakx-backup-do-not-use-f378b1e1cb1ff19b5730850e3790ec6fbcda76a1.tar.xz drakx-backup-do-not-use-f378b1e1cb1ff19b5730850e3790ec6fbcda76a1.zip |
(do_not_start_service_on_boot) : simplify it
-rw-r--r-- | perl-install/services.pm | 4 |
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; |